@esds-sangam/styles 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @esds-sangam/styles might be problematic. Click here for more details.
- package/README.md +3 -0
- package/dark.css +61 -0
- package/globals.css +94 -0
- package/package.json +27 -0
- package/tailwind.css +10 -0
- package/theme.css +86 -0
package/README.md
ADDED
package/dark.css
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
.dark {
|
|
3
|
+
/* Brand Colors - Sangam Dark Mode */
|
|
4
|
+
--color-primary: 12 140 233; /* Blue-600 #0C8CE9 */
|
|
5
|
+
--color-primary-foreground: 7 40 74;
|
|
6
|
+
--color-secondary: 56 184 124; /* Green-600 #38B87C */
|
|
7
|
+
--color-secondary-foreground: 3 70 38;
|
|
8
|
+
--color-accent: 252 196 92; /* Orange-500 #FCC45C */
|
|
9
|
+
--color-accent-foreground: 43 43 43;
|
|
10
|
+
|
|
11
|
+
/* Semantic Colors - Sangam Dark Mode */
|
|
12
|
+
--color-success: 56 184 124; /* Green-600 #38B87C */
|
|
13
|
+
--color-success-foreground: 3 70 38;
|
|
14
|
+
--color-error: 225 69 57; /* Red-600 #E14539 */
|
|
15
|
+
--color-error-foreground: 91 9 3;
|
|
16
|
+
--color-warning: 252 185 60; /* Orange-600 #FCB93C */
|
|
17
|
+
--color-warning-foreground: 105 70 5;
|
|
18
|
+
--color-info: 12 140 233; /* Blue-600 #0C8CE9 */
|
|
19
|
+
--color-info-foreground: 7 40 74;
|
|
20
|
+
|
|
21
|
+
/* Base Colors */
|
|
22
|
+
--background: 222.2 84% 4.9%;
|
|
23
|
+
--foreground: 210 40% 98%;
|
|
24
|
+
|
|
25
|
+
/* Card */
|
|
26
|
+
--card: 222.2 84% 4.9%;
|
|
27
|
+
--card-foreground: 210 40% 98%;
|
|
28
|
+
|
|
29
|
+
/* Popover */
|
|
30
|
+
--popover: 222.2 84% 4.9%;
|
|
31
|
+
--popover-foreground: 210 40% 98%;
|
|
32
|
+
|
|
33
|
+
/* Muted */
|
|
34
|
+
--muted: 217.2 32.6% 17.5%;
|
|
35
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
36
|
+
|
|
37
|
+
/* Accent */
|
|
38
|
+
--accent: 217.2 32.6% 17.5%;
|
|
39
|
+
--accent-foreground: 210 40% 98%;
|
|
40
|
+
|
|
41
|
+
/* Destructive */
|
|
42
|
+
--destructive: 0 62.8% 30.6%;
|
|
43
|
+
--destructive-foreground: 210 40% 98%;
|
|
44
|
+
|
|
45
|
+
/* Border */
|
|
46
|
+
--border: 217.2 32.6% 17.5%;
|
|
47
|
+
--input: 217.2 32.6% 17.5%;
|
|
48
|
+
|
|
49
|
+
/* Ring */
|
|
50
|
+
--ring: 212.7 26.8% 83.9%;
|
|
51
|
+
|
|
52
|
+
/* Shadows - Enhanced for dark mode */
|
|
53
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
|
|
54
|
+
--shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
|
|
55
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
|
|
56
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
|
|
57
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
|
|
58
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.75);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
package/globals.css
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
* {
|
|
7
|
+
@apply border-border;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
html {
|
|
11
|
+
@apply scroll-smooth;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
@apply bg-background text-foreground;
|
|
16
|
+
font-feature-settings: "rlig" 1, "calt" 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Remove default margins */
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6,
|
|
26
|
+
p,
|
|
27
|
+
ul,
|
|
28
|
+
ol,
|
|
29
|
+
figure,
|
|
30
|
+
blockquote,
|
|
31
|
+
dl,
|
|
32
|
+
dd {
|
|
33
|
+
@apply m-0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Remove list styles on ul, ol elements with a list role */
|
|
37
|
+
ul[role="list"],
|
|
38
|
+
ol[role="list"] {
|
|
39
|
+
@apply list-none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Set core root defaults */
|
|
43
|
+
html:focus-within {
|
|
44
|
+
scroll-behavior: smooth;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Set core body defaults */
|
|
48
|
+
body {
|
|
49
|
+
@apply min-h-screen text-base leading-normal antialiased;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* A elements that don't have a class get default styles */
|
|
53
|
+
a:not([class]) {
|
|
54
|
+
text-decoration-skip-ink: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Make images easier to work with */
|
|
58
|
+
img,
|
|
59
|
+
picture,
|
|
60
|
+
svg {
|
|
61
|
+
@apply max-w-full block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Inherit fonts for inputs and buttons */
|
|
65
|
+
input,
|
|
66
|
+
button,
|
|
67
|
+
textarea,
|
|
68
|
+
select {
|
|
69
|
+
font: inherit;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
|
|
73
|
+
@media (prefers-reduced-motion: reduce) {
|
|
74
|
+
html:focus-within {
|
|
75
|
+
scroll-behavior: auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
*,
|
|
79
|
+
*::before,
|
|
80
|
+
*::after {
|
|
81
|
+
animation-duration: 0.01ms !important;
|
|
82
|
+
animation-iteration-count: 1 !important;
|
|
83
|
+
transition-duration: 0.01ms !important;
|
|
84
|
+
scroll-behavior: auto !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@layer utilities {
|
|
90
|
+
.text-balance {
|
|
91
|
+
text-wrap: balance;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@esds-sangam/styles",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./globals.css",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./globals.css": "./globals.css",
|
|
8
|
+
"./theme.css": "./theme.css",
|
|
9
|
+
"./dark.css": "./dark.css",
|
|
10
|
+
"./tailwind.css": "./tailwind.css",
|
|
11
|
+
"./globals": "./globals.css",
|
|
12
|
+
"./theme": "./theme.css",
|
|
13
|
+
"./dark": "./dark.css",
|
|
14
|
+
"./tailwind": "./tailwind.css"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@esds-sangam/tokens": "*"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"autoprefixer": "^10.4.0",
|
|
21
|
+
"postcss": "^8.4.0",
|
|
22
|
+
"tailwindcss": "^3.4.0"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/tailwind.css
ADDED
package/theme.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root {
|
|
3
|
+
/* Brand Colors - Sangam Custom Palette */
|
|
4
|
+
--color-primary: 0 111 201; /* Blue-700 #006FC9 */
|
|
5
|
+
--color-primary-foreground: 255 255 255;
|
|
6
|
+
--color-secondary: 6 166 91; /* Green-700 #06A65B */
|
|
7
|
+
--color-secondary-foreground: 255 255 255;
|
|
8
|
+
--color-accent: 252 185 60; /* Orange-600 #FCB93C */
|
|
9
|
+
--color-accent-foreground: 17 17 17;
|
|
10
|
+
|
|
11
|
+
/* Semantic Colors - Sangam Custom Palette */
|
|
12
|
+
--color-success: 6 166 91; /* Green-700 #06A65B */
|
|
13
|
+
--color-success-foreground: 255 255 255;
|
|
14
|
+
--color-error: 217 22 8; /* Red-700 #D91608 */
|
|
15
|
+
--color-error-foreground: 255 255 255;
|
|
16
|
+
--color-warning: 251 167 11; /* Orange-700 #FBA70B */
|
|
17
|
+
--color-warning-foreground: 255 255 255;
|
|
18
|
+
--color-info: 0 111 201; /* Blue-700 #006FC9 */
|
|
19
|
+
--color-info-foreground: 255 255 255;
|
|
20
|
+
|
|
21
|
+
/* Base Colors */
|
|
22
|
+
--background: 0 0% 100%;
|
|
23
|
+
--foreground: 222.2 84% 4.9%;
|
|
24
|
+
|
|
25
|
+
/* Card */
|
|
26
|
+
--card: 0 0% 100%;
|
|
27
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
28
|
+
|
|
29
|
+
/* Popover */
|
|
30
|
+
--popover: 0 0% 100%;
|
|
31
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
32
|
+
|
|
33
|
+
/* Muted */
|
|
34
|
+
--muted: 210 40% 96.1%;
|
|
35
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
36
|
+
|
|
37
|
+
/* Accent */
|
|
38
|
+
--accent: 210 40% 96.1%;
|
|
39
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
40
|
+
|
|
41
|
+
/* Destructive */
|
|
42
|
+
--destructive: 0 84.2% 60.2%;
|
|
43
|
+
--destructive-foreground: 210 40% 98%;
|
|
44
|
+
|
|
45
|
+
/* Border */
|
|
46
|
+
--border: 214.3 31.8% 91.4%;
|
|
47
|
+
--input: 214.3 31.8% 91.4%;
|
|
48
|
+
|
|
49
|
+
/* Ring */
|
|
50
|
+
--ring: 222.2 84% 4.9%;
|
|
51
|
+
|
|
52
|
+
/* Radius */
|
|
53
|
+
--radius-sm: 0.125rem;
|
|
54
|
+
--radius-base: 0.25rem;
|
|
55
|
+
--radius-md: 0.375rem;
|
|
56
|
+
--radius-lg: 0.5rem;
|
|
57
|
+
--radius-xl: 0.75rem;
|
|
58
|
+
--radius-2xl: 1rem;
|
|
59
|
+
--radius-3xl: 1.5rem;
|
|
60
|
+
--radius-full: 9999px;
|
|
61
|
+
|
|
62
|
+
/* Spacing */
|
|
63
|
+
--spacing-0: 0px;
|
|
64
|
+
--spacing-1: 0.25rem;
|
|
65
|
+
--spacing-2: 0.5rem;
|
|
66
|
+
--spacing-3: 0.75rem;
|
|
67
|
+
--spacing-4: 1rem;
|
|
68
|
+
--spacing-5: 1.25rem;
|
|
69
|
+
--spacing-6: 1.5rem;
|
|
70
|
+
--spacing-8: 2rem;
|
|
71
|
+
--spacing-10: 2.5rem;
|
|
72
|
+
--spacing-12: 3rem;
|
|
73
|
+
--spacing-16: 4rem;
|
|
74
|
+
--spacing-20: 5rem;
|
|
75
|
+
--spacing-24: 6rem;
|
|
76
|
+
|
|
77
|
+
/* Shadows */
|
|
78
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
79
|
+
--shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
80
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
81
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
82
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
83
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|