diff --git a/src/lib/components/Playground.svelte b/src/lib/components/Playground.svelte index a85dc33..93bd9b8 100644 --- a/src/lib/components/Playground.svelte +++ b/src/lib/components/Playground.svelte @@ -1,3 +1,83 @@ -
-

Playground

-
+ + +
+ +
+

Typography Variants

+ {#each typographyVariants as variant} +
+ {variant} +
+ {/each} +
+ + +
+

Gray Color Scheme

+ {#each grayClasses as grayClass} +
+
+ {grayClass} +
+ {/each} +
+ + +
+

Pink Color Scheme

+ {#each pinkClasses as pinkClass} +
+
+ {pinkClass} +
+ {/each} +
+
+ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2e511e0..04af337 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,5 +1,5 @@ diff --git a/src/app.css b/src/styles/app.css similarity index 100% rename from src/app.css rename to src/styles/app.css diff --git a/src/styles/tailwind/color.ts b/src/styles/tailwind/color.ts new file mode 100644 index 0000000..c2a4c7d --- /dev/null +++ b/src/styles/tailwind/color.ts @@ -0,0 +1,16 @@ +export const colorScheme = { + sucu: { + gray: { + dark: '#3F3A3A', + DEFAULT: '#9D9D9D', + light: '#D5D5D5' + }, + pink: { + '01': '#FF82A9', + '02': '#FFA1B3', + '03': '#FFC0BE', + '04': '#FFD5D3', + '05': '#FFEBE7' + } + } +}; diff --git a/src/styles/tailwind/typography.ts b/src/styles/tailwind/typography.ts new file mode 100644 index 0000000..2721828 --- /dev/null +++ b/src/styles/tailwind/typography.ts @@ -0,0 +1,20 @@ +import { tv } from 'tailwind-variants'; + +export const typography = tv({ + variants: { + variant: { + heading1: 'font-bold text-[64px]', + heading2: 'font-bold text-5xl', + heading3: 'font-bold text-3xl', + heading4: 'font-bold text-2xl', + 'body-large': 'text-2xl', + 'body-medium': 'text-xl', + 'body-normal': 'text-base', + 'body-small': 'text-xs', + 'body-very-small': 'text-[8px]' + } + }, + defaultVariants: { + variant: 'body-large' + } +}); diff --git a/tailwind.config.js b/tailwind.config.js index bfe0bc2..d1d9a7c 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,12 @@ /** @type {import('tailwindcss').Config} */ +import { colorScheme } from './src/styles/tailwind/color'; + export default { content: ['./src/**/*.{html,js,svelte,ts}'], theme: { - extend: {} + extend: { + colors: colorScheme + } }, plugins: [] };