-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7a22af
commit b260bf2
Showing
7 changed files
with
238 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://next.shadcn-svelte.com/schema.json", | ||
"style": "default", | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/app.css", | ||
"baseColor": "slate" | ||
}, | ||
"aliases": { | ||
"components": "$lib/components", | ||
"utils": "$lib/utils", | ||
"ui": "$lib/components/ui", | ||
"hooks": "$lib/hooks" | ||
}, | ||
"typescript": true, | ||
"registry": "https://next.shadcn-svelte.com/registry" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,75 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 222.2 84% 4.9%; | ||
--muted: 210 40% 96.1%; | ||
--muted-foreground: 215.4 16.3% 46.9%; | ||
--popover: 0 0% 100%; | ||
--popover-foreground: 222.2 84% 4.9%; | ||
--card: 0 0% 100%; | ||
--card-foreground: 222.2 84% 4.9%; | ||
--border: 214.3 31.8% 91.4%; | ||
--input: 214.3 31.8% 91.4%; | ||
--primary: 222.2 47.4% 11.2%; | ||
--primary-foreground: 210 40% 98%; | ||
--secondary: 210 40% 96.1%; | ||
--secondary-foreground: 222.2 47.4% 11.2%; | ||
--accent: 210 40% 96.1%; | ||
--accent-foreground: 222.2 47.4% 11.2%; | ||
--destructive: 0 72.2% 50.6%; | ||
--destructive-foreground: 210 40% 98%; | ||
--ring: 222.2 84% 4.9%; | ||
--radius: 0.5rem; | ||
--sidebar-background: 0 0% 98%; | ||
--sidebar-foreground: 240 5.3% 26.1%; | ||
--sidebar-primary: 240 5.9% 10%; | ||
--sidebar-primary-foreground: 0 0% 98%; | ||
--sidebar-accent: 240 4.8% 95.9%; | ||
--sidebar-accent-foreground: 240 5.9% 10%; | ||
--sidebar-border: 220 13% 91%; | ||
--sidebar-ring: 217.2 91.2% 59.8%; | ||
} | ||
|
||
.dark { | ||
--background: 222.2 84% 4.9%; | ||
--foreground: 210 40% 98%; | ||
--muted: 217.2 32.6% 17.5%; | ||
--muted-foreground: 215 20.2% 65.1%; | ||
--popover: 222.2 84% 4.9%; | ||
--popover-foreground: 210 40% 98%; | ||
--card: 222.2 84% 4.9%; | ||
--card-foreground: 210 40% 98%; | ||
--border: 217.2 32.6% 17.5%; | ||
--input: 217.2 32.6% 17.5%; | ||
--primary: 210 40% 98%; | ||
--primary-foreground: 222.2 47.4% 11.2%; | ||
--secondary: 217.2 32.6% 17.5%; | ||
--secondary-foreground: 210 40% 98%; | ||
--accent: 217.2 32.6% 17.5%; | ||
--accent-foreground: 210 40% 98%; | ||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 210 40% 98%; | ||
--ring: 212.7 26.8% 83.9%; | ||
--sidebar-background: 240 5.9% 10%; | ||
--sidebar-foreground: 240 4.8% 95.9%; | ||
--sidebar-primary: 224.3 76.3% 48%; | ||
--sidebar-primary-foreground: 0 0% 100%; | ||
--sidebar-accent: 240 3.7% 15.9%; | ||
--sidebar-accent-foreground: 240 4.8% 95.9%; | ||
--sidebar-border: 240 3.7% 15.9%; | ||
--sidebar-ring: 217.2 91.2% 59.8%; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { type ClassValue, clsx } from "clsx"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ const config = { | |
assets: "build", | ||
fallback: "index.html", | ||
}), | ||
alias: { | ||
$src: "src", | ||
}, | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,97 @@ | ||
import forms from "@tailwindcss/forms"; | ||
import { fontFamily } from "tailwindcss/defaultTheme"; | ||
import type { Config } from "tailwindcss"; | ||
import tailwindcssAnimate from "tailwindcss-animate"; | ||
|
||
export default { | ||
const config: Config = { | ||
darkMode: ["class"], | ||
content: ["./src/**/*.{html,js,svelte,ts}"], | ||
|
||
safelist: ["dark"], | ||
theme: { | ||
extend: {}, | ||
container: { | ||
center: true, | ||
padding: "2rem", | ||
screens: { | ||
"2xl": "1400px", | ||
}, | ||
}, | ||
extend: { | ||
colors: { | ||
border: "hsl(var(--border) / <alpha-value>)", | ||
input: "hsl(var(--input) / <alpha-value>)", | ||
ring: "hsl(var(--ring) / <alpha-value>)", | ||
background: "hsl(var(--background) / <alpha-value>)", | ||
foreground: "hsl(var(--foreground) / <alpha-value>)", | ||
primary: { | ||
DEFAULT: "hsl(var(--primary) / <alpha-value>)", | ||
foreground: "hsl(var(--primary-foreground) / <alpha-value>)", | ||
}, | ||
secondary: { | ||
DEFAULT: "hsl(var(--secondary) / <alpha-value>)", | ||
foreground: "hsl(var(--secondary-foreground) / <alpha-value>)", | ||
}, | ||
destructive: { | ||
DEFAULT: "hsl(var(--destructive) / <alpha-value>)", | ||
foreground: "hsl(var(--destructive-foreground) / <alpha-value>)", | ||
}, | ||
muted: { | ||
DEFAULT: "hsl(var(--muted) / <alpha-value>)", | ||
foreground: "hsl(var(--muted-foreground) / <alpha-value>)", | ||
}, | ||
accent: { | ||
DEFAULT: "hsl(var(--accent) / <alpha-value>)", | ||
foreground: "hsl(var(--accent-foreground) / <alpha-value>)", | ||
}, | ||
popover: { | ||
DEFAULT: "hsl(var(--popover) / <alpha-value>)", | ||
foreground: "hsl(var(--popover-foreground) / <alpha-value>)", | ||
}, | ||
card: { | ||
DEFAULT: "hsl(var(--card) / <alpha-value>)", | ||
foreground: "hsl(var(--card-foreground) / <alpha-value>)", | ||
}, | ||
sidebar: { | ||
DEFAULT: "hsl(var(--sidebar-background))", | ||
foreground: "hsl(var(--sidebar-foreground))", | ||
primary: "hsl(var(--sidebar-primary))", | ||
"primary-foreground": "hsl(var(--sidebar-primary-foreground))", | ||
accent: "hsl(var(--sidebar-accent))", | ||
"accent-foreground": "hsl(var(--sidebar-accent-foreground))", | ||
border: "hsl(var(--sidebar-border))", | ||
ring: "hsl(var(--sidebar-ring))", | ||
}, | ||
}, | ||
borderRadius: { | ||
xl: "calc(var(--radius) + 4px)", | ||
lg: "var(--radius)", | ||
md: "calc(var(--radius) - 2px)", | ||
sm: "calc(var(--radius) - 4px)", | ||
}, | ||
fontFamily: { | ||
sans: [...fontFamily.sans], | ||
}, | ||
keyframes: { | ||
"accordion-down": { | ||
from: { height: "0" }, | ||
to: { height: "var(--bits-accordion-content-height)" }, | ||
}, | ||
"accordion-up": { | ||
from: { height: "var(--bits-accordion-content-height)" }, | ||
to: { height: "0" }, | ||
}, | ||
"caret-blink": { | ||
"0%,70%,100%": { opacity: "1" }, | ||
"20%,50%": { opacity: "0" }, | ||
}, | ||
}, | ||
animation: { | ||
"accordion-down": "accordion-down 0.2s ease-out", | ||
"accordion-up": "accordion-up 0.2s ease-out", | ||
"caret-blink": "caret-blink 1.25s ease-out infinite", | ||
}, | ||
}, | ||
}, | ||
plugins: [tailwindcssAnimate, forms], | ||
}; | ||
|
||
plugins: [forms], | ||
} satisfies Config; | ||
export default config; |