- {open && (
-
-
-
ALIGN
-
-
-
- ),
- value: 'left',
- },
- {
- label: (
-
-
-
- ),
- value: 'center',
- },
- {
- label: (
-
-
-
- ),
- value: 'right',
- },
- ]}
- onChange={(v) => setOption((prev) => ({ ...prev, align: v }))}
- value={option.align}
- />
-
-
-
ROLLWAY
-
setOption((prev) => ({ ...prev, rollWay: v }))}
- value={option.rollWay}
- />
-
-
-
ROLL DURATION
-
setOption((prev) => ({ ...prev, rollDuration: v }))}
- suffix="s"
- value={option.rollDuration}
- />
-
-
-
SHIFT DURATION
-
setOption((prev) => ({ ...prev, shiftDuration: v }))}
- suffix="s"
- value={option.shiftDuration}
- />
-
-
-
STAGGER
-
setOption((prev) => ({ ...prev, stagger: v }))}
- value={option.stagger}
- />
-
-
-
ANIMATE DIFF
-
setOption((prev) => ({ ...prev, animateDiff: v }))}
- value={option.animateDiff}
- />
-
-
-
COMMAIZE
-
setOption((prev) => ({ ...prev, commaize: v }))}
- value={option.commaize}
- />
-
-
-
SHOW PLUS SIGN
-
setOption((prev) => ({ ...prev, showPlusSign: v }))}
- value={option.showPlusSign}
- />
-
+
+
+
ALIGN
+
+
+
+ ),
+ value: 'left',
+ },
+ {
+ label: (
+
+
+
+ ),
+ value: 'center',
+ },
+ {
+ label: (
+
+
+
+ ),
+ value: 'right',
+ },
+ ]}
+ onChange={(v) => setOption((prev) => ({ ...prev, align: v }))}
+ value={option.align}
+ />
+
+
+
ROLLWAY
+
setOption((prev) => ({ ...prev, rollWay: v }))}
+ value={option.rollWay}
+ />
+
+
+
ROLL DURATION
+
setOption((prev) => ({ ...prev, rollDuration: v }))}
+ suffix="s"
+ value={option.rollDuration}
+ />
+
+
+
SHIFT DURATION
+
setOption((prev) => ({ ...prev, shiftDuration: v }))}
+ suffix="s"
+ value={option.shiftDuration}
+ />
+
+
+
STAGGER
+
setOption((prev) => ({ ...prev, stagger: v }))}
+ value={option.stagger}
+ />
+
+
+
ANIMATE DIFF
+
setOption((prev) => ({ ...prev, animateDiff: v }))}
+ value={option.animateDiff}
+ />
+
+
+
COMMAIZE
+
setOption((prev) => ({ ...prev, commaize: v }))}
+ value={option.commaize}
+ />
+
+
+
SHOW PLUS SIGN
+
setOption((prev) => ({ ...prev, showPlusSign: v }))}
+ value={option.showPlusSign}
+ />
- )}
+
);
};
diff --git a/apps/demo/src/styles/animations.css b/apps/demo/src/styles/animations.css
new file mode 100644
index 0000000..8d031c3
--- /dev/null
+++ b/apps/demo/src/styles/animations.css
@@ -0,0 +1,15 @@
+@import 'tailwindcss';
+
+@keyframes fadeout {
+ to {
+ opacity: 0;
+ }
+}
+
+@theme {
+ /* Easings */
+ --ease-materialBase: cubic-bezier(0.2, 0, 0, 1);
+
+ /* Animations */
+ --animate-fadeout: fadeout 0.5s ease-in-out forwards 0.2s;
+}
diff --git a/apps/demo/src/styles/breakpoints.css b/apps/demo/src/styles/breakpoints.css
new file mode 100644
index 0000000..cbda0bd
--- /dev/null
+++ b/apps/demo/src/styles/breakpoints.css
@@ -0,0 +1,9 @@
+@import 'tailwindcss';
+
+@theme {
+ --breakpoint-*: initial;
+
+ --breakpoint-md: 578px;
+ --breakpoint-lg: 900px;
+ --breakpoint-xl: 1350px;
+}
diff --git a/apps/demo/src/app/globals.css b/apps/demo/src/styles/colors.css
similarity index 57%
rename from apps/demo/src/app/globals.css
rename to apps/demo/src/styles/colors.css
index 6a8a365..e06799d 100644
--- a/apps/demo/src/app/globals.css
+++ b/apps/demo/src/styles/colors.css
@@ -1,11 +1,5 @@
@import 'tailwindcss';
-@keyframes fadeout {
- to {
- opacity: 0;
- }
-}
-
:root {
--background: #141414;
--layerBackground: #202020;
@@ -36,44 +30,6 @@
--color-neutralSubtle: var(--neutralSubtle);
--color-neutralPlaceholder: var(--neutralPlaceholder);
--color-neutralInspector: var(--neutralInspector);
- --color-blueAccent: var(--blueAccent);
-
- --font-sans: var(--soehne), var(--noto-sans-kr), sans-serif;
-
- --ease-materialBase: cubic-bezier(0.2, 0, 0, 1);
-}
-
-@theme {
- --animate-fadeout: fadeout 0.5s ease-in-out forwards 0.2s;
-}
-
-@layer base {
- a {
- color: var(--blueAccent);
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- input[type='number'] {
- appearance: textfield;
- -webkit-appearance: textfield;
- -moz-appearance: textfield;
- }
-
- input::-webkit-outer-spin-button,
- input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
- }
-}
-
-html,
-body {
- width: 100%;
- height: 100%;
-
- background-color: var(--background);
- color: var(--neutral);
+ --color-blueAccent: var(--blueAccent);
}
diff --git a/apps/demo/src/styles/fonts.css b/apps/demo/src/styles/fonts.css
new file mode 100644
index 0000000..44adb1b
--- /dev/null
+++ b/apps/demo/src/styles/fonts.css
@@ -0,0 +1,6 @@
+@import 'tailwindcss';
+
+@theme inline {
+ /* Declare from app/layout.tsx, next/font */
+ --font-sans: var(--soehne), var(--noto-sans-kr), sans-serif;
+}
diff --git a/apps/demo/src/styles/globals.css b/apps/demo/src/styles/globals.css
new file mode 100644
index 0000000..49dd8ca
--- /dev/null
+++ b/apps/demo/src/styles/globals.css
@@ -0,0 +1,36 @@
+@import 'tailwindcss';
+@import './colors.css';
+@import './fonts.css';
+@import './animations.css';
+@import './breakpoints.css';
+
+@layer base {
+ a {
+ color: var(--blueAccent);
+ text-decoration: none;
+ }
+ a:hover {
+ text-decoration: underline;
+ }
+
+ input[type='number'] {
+ appearance: textfield;
+ -webkit-appearance: textfield;
+ -moz-appearance: textfield;
+ }
+
+ input::-webkit-outer-spin-button,
+ input::-webkit-inner-spin-button {
+ -webkit-appearance: none;
+ margin: 0;
+ }
+
+ html,
+ body {
+ width: 100%;
+ height: 100%;
+
+ background-color: var(--background);
+ color: var(--neutral);
+ }
+}