@skill-academy/uikit 0.0.2

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.
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Skill Management UI – theme variables only (no Tailwind).
3
+ * Import this in any app to get :root and .dark CSS custom properties.
4
+ * Use with Tailwind v3 by extending your theme from these variables, or use as-is for non-Tailwind apps.
5
+ */
6
+ :root {
7
+ --font-size: 16px;
8
+ --background: #ffffff;
9
+ --foreground: oklch(0.145 0 0);
10
+ --card: #ffffff;
11
+ --card-foreground: oklch(0.145 0 0);
12
+ --popover: oklch(1 0 0);
13
+ --popover-foreground: oklch(0.145 0 0);
14
+ --primary: #030213;
15
+ --primary-foreground: oklch(1 0 0);
16
+ --secondary: oklch(0.95 0.0058 264.53);
17
+ --secondary-foreground: #030213;
18
+ --muted: #ececf0;
19
+ --muted-foreground: #717182;
20
+ --accent: #e9ebef;
21
+ --accent-foreground: #030213;
22
+ --destructive: #d4183d;
23
+ --destructive-foreground: #ffffff;
24
+ --border: rgba(0, 0, 0, 0.1);
25
+ --input: transparent;
26
+ --input-background: #f3f3f5;
27
+ --switch-background: #cbced4;
28
+ --font-weight-medium: 500;
29
+ --font-weight-normal: 400;
30
+ --ring: oklch(0.708 0 0);
31
+ --chart-1: oklch(0.646 0.222 41.116);
32
+ --chart-2: oklch(0.6 0.118 184.704);
33
+ --chart-3: oklch(0.398 0.07 227.392);
34
+ --chart-4: oklch(0.828 0.189 84.429);
35
+ --chart-5: oklch(0.769 0.188 70.08);
36
+ --radius: 0.625rem;
37
+ --sidebar: oklch(0.985 0 0);
38
+ --sidebar-foreground: oklch(0.145 0 0);
39
+ --sidebar-primary: #030213;
40
+ --sidebar-primary-foreground: oklch(0.985 0 0);
41
+ --sidebar-accent: oklch(0.97 0 0);
42
+ --sidebar-accent-foreground: oklch(0.205 0 0);
43
+ --sidebar-border: oklch(0.922 0 0);
44
+ --sidebar-ring: oklch(0.708 0 0);
45
+ }
46
+
47
+ .dark {
48
+ --background: oklch(0.145 0 0);
49
+ --foreground: oklch(0.985 0 0);
50
+ --card: oklch(0.145 0 0);
51
+ --card-foreground: oklch(0.985 0 0);
52
+ --popover: oklch(0.145 0 0);
53
+ --popover-foreground: oklch(0.985 0 0);
54
+ --primary: oklch(0.985 0 0);
55
+ --primary-foreground: oklch(0.205 0 0);
56
+ --secondary: oklch(0.269 0 0);
57
+ --secondary-foreground: oklch(0.985 0 0);
58
+ --muted: oklch(0.269 0 0);
59
+ --muted-foreground: oklch(0.708 0 0);
60
+ --accent: oklch(0.269 0 0);
61
+ --accent-foreground: oklch(0.985 0 0);
62
+ --destructive: oklch(0.396 0.141 25.723);
63
+ --destructive-foreground: oklch(0.637 0.237 25.331);
64
+ --border: oklch(0.269 0 0);
65
+ --input: oklch(0.269 0 0);
66
+ --ring: oklch(0.439 0 0);
67
+ --font-weight-medium: 500;
68
+ --font-weight-normal: 400;
69
+ --chart-1: oklch(0.488 0.243 264.376);
70
+ --chart-2: oklch(0.696 0.17 162.48);
71
+ --chart-3: oklch(0.769 0.188 70.08);
72
+ --chart-4: oklch(0.627 0.265 303.9);
73
+ --chart-5: oklch(0.645 0.246 16.439);
74
+ --sidebar: oklch(0.205 0 0);
75
+ --sidebar-foreground: oklch(0.985 0 0);
76
+ --sidebar-primary: oklch(0.488 0.243 264.376);
77
+ --sidebar-primary-foreground: oklch(0.985 0 0);
78
+ --sidebar-accent: oklch(0.269 0 0);
79
+ --sidebar-accent-foreground: oklch(0.985 0 0);
80
+ --sidebar-border: oklch(0.269 0 0);
81
+ --sidebar-ring: oklch(0.439 0 0);
82
+ }
@@ -0,0 +1,181 @@
1
+ /**
2
+ * Skill Management UI – theme (from Skill Management Platform Designs).
3
+ * Use with Tailwind v4: import this file in your app's CSS entry so Tailwind can process @theme and @layer.
4
+ * For Tailwind v3 or no-Tailwind apps, import theme-variables.css instead and map vars in your config.
5
+ */
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ :root {
9
+ --font-size: 16px;
10
+ --background: #ffffff;
11
+ --foreground: oklch(0.145 0 0);
12
+ --card: #ffffff;
13
+ --card-foreground: oklch(0.145 0 0);
14
+ --popover: oklch(1 0 0);
15
+ --popover-foreground: oklch(0.145 0 0);
16
+ --primary: #030213;
17
+ --primary-foreground: oklch(1 0 0);
18
+ --secondary: oklch(0.95 0.0058 264.53);
19
+ --secondary-foreground: #030213;
20
+ --muted: #ececf0;
21
+ --muted-foreground: #717182;
22
+ --accent: #e9ebef;
23
+ --accent-foreground: #030213;
24
+ --destructive: #d4183d;
25
+ --destructive-foreground: #ffffff;
26
+ --border: rgba(0, 0, 0, 0.1);
27
+ --input: transparent;
28
+ --input-background: #f3f3f5;
29
+ --switch-background: #cbced4;
30
+ --font-weight-medium: 500;
31
+ --font-weight-normal: 400;
32
+ --ring: oklch(0.708 0 0);
33
+ --chart-1: oklch(0.646 0.222 41.116);
34
+ --chart-2: oklch(0.6 0.118 184.704);
35
+ --chart-3: oklch(0.398 0.07 227.392);
36
+ --chart-4: oklch(0.828 0.189 84.429);
37
+ --chart-5: oklch(0.769 0.188 70.08);
38
+ --radius: 0.625rem;
39
+ --sidebar: oklch(0.985 0 0);
40
+ --sidebar-foreground: oklch(0.145 0 0);
41
+ --sidebar-primary: #030213;
42
+ --sidebar-primary-foreground: oklch(0.985 0 0);
43
+ --sidebar-accent: oklch(0.97 0 0);
44
+ --sidebar-accent-foreground: oklch(0.205 0 0);
45
+ --sidebar-border: oklch(0.922 0 0);
46
+ --sidebar-ring: oklch(0.708 0 0);
47
+ }
48
+
49
+ .dark {
50
+ --background: oklch(0.145 0 0);
51
+ --foreground: oklch(0.985 0 0);
52
+ --card: oklch(0.145 0 0);
53
+ --card-foreground: oklch(0.985 0 0);
54
+ --popover: oklch(0.145 0 0);
55
+ --popover-foreground: oklch(0.985 0 0);
56
+ --primary: oklch(0.985 0 0);
57
+ --primary-foreground: oklch(0.205 0 0);
58
+ --secondary: oklch(0.269 0 0);
59
+ --secondary-foreground: oklch(0.985 0 0);
60
+ --muted: oklch(0.269 0 0);
61
+ --muted-foreground: oklch(0.708 0 0);
62
+ --accent: oklch(0.269 0 0);
63
+ --accent-foreground: oklch(0.985 0 0);
64
+ --destructive: oklch(0.396 0.141 25.723);
65
+ --destructive-foreground: oklch(0.637 0.237 25.331);
66
+ --border: oklch(0.269 0 0);
67
+ --input: oklch(0.269 0 0);
68
+ --ring: oklch(0.439 0 0);
69
+ --font-weight-medium: 500;
70
+ --font-weight-normal: 400;
71
+ --chart-1: oklch(0.488 0.243 264.376);
72
+ --chart-2: oklch(0.696 0.17 162.48);
73
+ --chart-3: oklch(0.769 0.188 70.08);
74
+ --chart-4: oklch(0.627 0.265 303.9);
75
+ --chart-5: oklch(0.645 0.246 16.439);
76
+ --sidebar: oklch(0.205 0 0);
77
+ --sidebar-foreground: oklch(0.985 0 0);
78
+ --sidebar-primary: oklch(0.488 0.243 264.376);
79
+ --sidebar-primary-foreground: oklch(0.985 0 0);
80
+ --sidebar-accent: oklch(0.269 0 0);
81
+ --sidebar-accent-foreground: oklch(0.985 0 0);
82
+ --sidebar-border: oklch(0.269 0 0);
83
+ --sidebar-ring: oklch(0.439 0 0);
84
+ }
85
+
86
+ @theme inline {
87
+ --color-background: var(--background);
88
+ --color-foreground: var(--foreground);
89
+ --color-card: var(--card);
90
+ --color-card-foreground: var(--card-foreground);
91
+ --color-popover: var(--popover);
92
+ --color-popover-foreground: var(--popover-foreground);
93
+ --color-primary: var(--primary);
94
+ --color-primary-foreground: var(--primary-foreground);
95
+ --color-secondary: var(--secondary);
96
+ --color-secondary-foreground: var(--secondary-foreground);
97
+ --color-muted: var(--muted);
98
+ --color-muted-foreground: var(--muted-foreground);
99
+ --color-accent: var(--accent);
100
+ --color-accent-foreground: var(--accent-foreground);
101
+ --color-destructive: var(--destructive);
102
+ --color-destructive-foreground: var(--destructive-foreground);
103
+ --color-border: var(--border);
104
+ --color-input: var(--input);
105
+ --color-input-background: var(--input-background);
106
+ --color-switch-background: var(--switch-background);
107
+ --color-ring: var(--ring);
108
+ --color-chart-1: var(--chart-1);
109
+ --color-chart-2: var(--chart-2);
110
+ --color-chart-3: var(--chart-3);
111
+ --color-chart-4: var(--chart-4);
112
+ --color-chart-5: var(--chart-5);
113
+ --radius-sm: calc(var(--radius) - 4px);
114
+ --radius-md: calc(var(--radius) - 2px);
115
+ --radius-lg: var(--radius);
116
+ --radius-xl: calc(var(--radius) + 4px);
117
+ --color-sidebar: var(--sidebar);
118
+ --color-sidebar-foreground: var(--sidebar-foreground);
119
+ --color-sidebar-primary: var(--sidebar-primary);
120
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
121
+ --color-sidebar-accent: var(--sidebar-accent);
122
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
123
+ --color-sidebar-border: var(--sidebar-border);
124
+ --color-sidebar-ring: var(--sidebar-ring);
125
+ }
126
+
127
+ @layer base {
128
+ * {
129
+ @apply border-border outline-ring/50;
130
+ }
131
+
132
+ body {
133
+ @apply bg-background text-foreground;
134
+ }
135
+
136
+ html {
137
+ font-size: var(--font-size);
138
+ }
139
+
140
+ h1 {
141
+ font-size: 1.5rem;
142
+ font-weight: var(--font-weight-medium);
143
+ line-height: 1.5;
144
+ }
145
+
146
+ h2 {
147
+ font-size: 1.25rem;
148
+ font-weight: var(--font-weight-medium);
149
+ line-height: 1.5;
150
+ }
151
+
152
+ h3 {
153
+ font-size: 1.125rem;
154
+ font-weight: var(--font-weight-medium);
155
+ line-height: 1.5;
156
+ }
157
+
158
+ h4 {
159
+ font-size: 1rem;
160
+ font-weight: var(--font-weight-medium);
161
+ line-height: 1.5;
162
+ }
163
+
164
+ label {
165
+ font-size: 1rem;
166
+ font-weight: var(--font-weight-medium);
167
+ line-height: 1.5;
168
+ }
169
+
170
+ button {
171
+ font-size: 1rem;
172
+ font-weight: var(--font-weight-medium);
173
+ line-height: 1.5;
174
+ }
175
+
176
+ input {
177
+ font-size: 1rem;
178
+ font-weight: var(--font-weight-normal);
179
+ line-height: 1.5;
180
+ }
181
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Tailwind v3 preset for @skill-academy/uikit.
3
+ * Use in your app's tailwind.config.js:
4
+ * module.exports = { presets: [require('@skill-academy/uikit/tailwind.preset.js')], content: [...]
5
+ */
6
+ module.exports = {
7
+ theme: {
8
+ extend: {
9
+ colors: {
10
+ background: "var(--background)",
11
+ foreground: "var(--foreground)",
12
+ card: "var(--card)",
13
+ "card-foreground": "var(--card-foreground)",
14
+ popover: "var(--popover)",
15
+ "popover-foreground": "var(--popover-foreground)",
16
+ primary: "var(--primary)",
17
+ "primary-foreground": "var(--primary-foreground)",
18
+ secondary: "var(--secondary)",
19
+ "secondary-foreground": "var(--secondary-foreground)",
20
+ muted: "var(--muted)",
21
+ "muted-foreground": "var(--muted-foreground)",
22
+ accent: "var(--accent)",
23
+ "accent-foreground": "var(--accent-foreground)",
24
+ destructive: "var(--destructive)",
25
+ "destructive-foreground": "var(--destructive-foreground)",
26
+ border: "var(--border)",
27
+ input: "var(--input)",
28
+ "input-background": "var(--input-background)",
29
+ ring: "var(--ring)",
30
+ chart: {
31
+ 1: "var(--chart-1)",
32
+ 2: "var(--chart-2)",
33
+ 3: "var(--chart-3)",
34
+ 4: "var(--chart-4)",
35
+ 5: "var(--chart-5)",
36
+ },
37
+ sidebar: {
38
+ DEFAULT: "var(--sidebar)",
39
+ foreground: "var(--sidebar-foreground)",
40
+ primary: "var(--sidebar-primary)",
41
+ "primary-foreground": "var(--sidebar-primary-foreground)",
42
+ accent: "var(--sidebar-accent)",
43
+ "accent-foreground": "var(--sidebar-accent-foreground)",
44
+ border: "var(--sidebar-border)",
45
+ ring: "var(--sidebar-ring)",
46
+ },
47
+ },
48
+ borderRadius: {
49
+ lg: "var(--radius)",
50
+ md: "calc(var(--radius) - 2px)",
51
+ sm: "calc(var(--radius) - 4px)",
52
+ },
53
+ },
54
+ },
55
+ };