Skip to content

Commit

Permalink
feat: set up some initial styling and UI scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Apr 3, 2024
1 parent 11134af commit 500d014
Show file tree
Hide file tree
Showing 17 changed files with 384 additions and 40 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"type": "module",
"dependencies": {
"bits-ui": "^0.21.2",
"clsx": "^2.1.0",
"tailwind-merge": "^2.2.2",
"tailwind-variants": "^0.2.1"
Expand Down
89 changes: 73 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 26 additions & 20 deletions src/app.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,44 @@

--ring: 0 0% 3.9%;

--radius: 0.5rem;
--radius: 0;
}

.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--background: 234 34% 12%;
--foreground: 234 83% 100%;

--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
--muted: 234 29% 22%;
--muted-foreground: 234 23% 72%;

--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;
--popover: var(--secondary);
--popover-foreground: var(--secondary-foreground);

--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;
--card: 234 35% 14%;
--card-foreground: var(--foreground);

--border: 0 0% 14.9%;
--input: 0 0% 14.9%;
--border: var(--foreground);
--input: var(--foreground);

--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;
--primary-gradient: linear-gradient(
180deg,
hsl(var(--background)) 0%,
#171a2e 25.5%,
#272a47 100%
);
--primary-color: 202 100% 82%;
--primary-foreground: var(--foreground);

--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;
--secondary: 234 29% 22%;
--secondary-foreground: var(--foreground);

--accent: 0 0% 14.9%;
--accent-foreground: 0 0% 98%;
--accent: 45 79%78%;
--accent-foreground: var(--background);

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--destructive: 0 79% 78%;
--destructive-foreground: var(--background);

--ring: 0 0% 83.1%;
--ring: var(--accent);
}
}

Expand Down
25 changes: 25 additions & 0 deletions src/lib/ui/components/ui/button/button.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script lang="ts">
import { Button as ButtonPrimitive } from "bits-ui";
import { type Events, type Props, buttonVariants } from "./index.js";
import { cn } from "$lib/ui/utils.js";
type $$Props = Props;
type $$Events = Events;
let className: $$Props["class"] = undefined;
export let variant: $$Props["variant"] = "default";
export let size: $$Props["size"] = "default";
export let builders: $$Props["builders"] = [];
export { className as class };
</script>

<ButtonPrimitive.Root
{builders}
class={cn(buttonVariants({ variant, size, className }))}
type="button"
{...$$restProps}
on:click
on:keydown
>
<slot />
</ButtonPrimitive.Root>
Loading

0 comments on commit 500d014

Please sign in to comment.