@casoon/atlas-styles 0.1.0 → 0.2.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.
- package/LICENSE +21 -0
- package/dist/index.css +8 -0
- package/dist/tokens.css +8 -0
- package/package.json +17 -7
- package/src/preset.js +156 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Jörn Seidel (CASOON)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.css
CHANGED
|
@@ -10133,6 +10133,12 @@
|
|
|
10133
10133
|
*/
|
|
10134
10134
|
|
|
10135
10135
|
:root {
|
|
10136
|
+
/* ========================================
|
|
10137
|
+
Color Scheme
|
|
10138
|
+
Enables native dark/light mode support
|
|
10139
|
+
======================================== */
|
|
10140
|
+
color-scheme: dark light;
|
|
10141
|
+
|
|
10136
10142
|
/* ========================================
|
|
10137
10143
|
Semantic Color Tokens
|
|
10138
10144
|
Using HSL format for flexibility
|
|
@@ -10356,6 +10362,8 @@
|
|
|
10356
10362
|
======================================== */
|
|
10357
10363
|
:root[data-theme='light'],
|
|
10358
10364
|
.light {
|
|
10365
|
+
color-scheme: light;
|
|
10366
|
+
|
|
10359
10367
|
--atlas-background: 0 0% 100%;
|
|
10360
10368
|
--atlas-foreground: 220 14% 10%;
|
|
10361
10369
|
|
package/dist/tokens.css
CHANGED
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
:root {
|
|
12
|
+
/* ========================================
|
|
13
|
+
Color Scheme
|
|
14
|
+
Enables native dark/light mode support
|
|
15
|
+
======================================== */
|
|
16
|
+
color-scheme: dark light;
|
|
17
|
+
|
|
12
18
|
/* ========================================
|
|
13
19
|
Semantic Color Tokens
|
|
14
20
|
Using HSL format for flexibility
|
|
@@ -232,6 +238,8 @@
|
|
|
232
238
|
======================================== */
|
|
233
239
|
:root[data-theme='light'],
|
|
234
240
|
.light {
|
|
241
|
+
color-scheme: light;
|
|
242
|
+
|
|
235
243
|
--atlas-background: 0 0% 100%;
|
|
236
244
|
--atlas-foreground: 220 14% 10%;
|
|
237
245
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casoon/atlas-styles",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Pure CSS design system with glass effects, gradients, and utilities for Tailwind v4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"src/preset.js"
|
|
8
9
|
],
|
|
9
10
|
"sideEffects": [
|
|
10
11
|
"./dist/**/*.css"
|
|
11
12
|
],
|
|
12
13
|
"exports": {
|
|
13
14
|
".": "./dist/index.css",
|
|
15
|
+
"./preset": "./src/preset.js",
|
|
16
|
+
"./tokens": "./dist/tokens.css",
|
|
17
|
+
"./core": "./dist/core.css",
|
|
18
|
+
"./glass": "./dist/glass.css",
|
|
19
|
+
"./orbs": "./dist/orbs.css",
|
|
20
|
+
"./animations": "./dist/animations.css",
|
|
21
|
+
"./utilities": "./dist/utilities.css",
|
|
22
|
+
"./components": "./dist/components.css",
|
|
23
|
+
"./recipes": "./dist/recipes.css",
|
|
14
24
|
"./dist/index.css": "./dist/index.css",
|
|
15
25
|
"./dist/core.css": "./dist/core.css",
|
|
16
26
|
"./dist/glass.css": "./dist/glass.css",
|
|
@@ -29,10 +39,6 @@
|
|
|
29
39
|
"./tokens.css": "./dist/tokens.css",
|
|
30
40
|
"./recipes.css": "./dist/recipes.css"
|
|
31
41
|
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "rimraf dist && node build.js",
|
|
34
|
-
"clean": "rimraf dist"
|
|
35
|
-
},
|
|
36
42
|
"keywords": [
|
|
37
43
|
"tailwind",
|
|
38
44
|
"css",
|
|
@@ -62,5 +68,9 @@
|
|
|
62
68
|
},
|
|
63
69
|
"publishConfig": {
|
|
64
70
|
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "rimraf dist && node build.js",
|
|
74
|
+
"clean": "rimraf dist"
|
|
65
75
|
}
|
|
66
|
-
}
|
|
76
|
+
}
|
package/src/preset.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Atlas Tailwind v4 Preset
|
|
3
|
+
*
|
|
4
|
+
* Maps Atlas CSS variables to Tailwind utility classes.
|
|
5
|
+
* This preset only provides variable mappings - all actual values
|
|
6
|
+
* are defined in tokens.css and can be overridden there.
|
|
7
|
+
*
|
|
8
|
+
* Usage in tailwind.config.js:
|
|
9
|
+
* import atlasPreset from '@casoon/atlas-styles/preset'
|
|
10
|
+
* export default { presets: [atlasPreset] }
|
|
11
|
+
*
|
|
12
|
+
* @see https://tailwindcss.com/docs/presets
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
theme: {
|
|
17
|
+
extend: {
|
|
18
|
+
colors: {
|
|
19
|
+
atlas: {
|
|
20
|
+
background: 'hsl(var(--atlas-background) / <alpha-value>)',
|
|
21
|
+
foreground: 'hsl(var(--atlas-foreground) / <alpha-value>)',
|
|
22
|
+
card: 'hsl(var(--atlas-card) / <alpha-value>)',
|
|
23
|
+
'card-foreground': 'hsl(var(--atlas-card-foreground) / <alpha-value>)',
|
|
24
|
+
popover: 'hsl(var(--atlas-popover) / <alpha-value>)',
|
|
25
|
+
'popover-foreground': 'hsl(var(--atlas-popover-foreground) / <alpha-value>)',
|
|
26
|
+
primary: 'hsl(var(--atlas-primary) / <alpha-value>)',
|
|
27
|
+
'primary-foreground': 'hsl(var(--atlas-primary-foreground) / <alpha-value>)',
|
|
28
|
+
secondary: 'hsl(var(--atlas-secondary) / <alpha-value>)',
|
|
29
|
+
'secondary-foreground': 'hsl(var(--atlas-secondary-foreground) / <alpha-value>)',
|
|
30
|
+
muted: 'hsl(var(--atlas-muted) / <alpha-value>)',
|
|
31
|
+
'muted-foreground': 'hsl(var(--atlas-muted-foreground) / <alpha-value>)',
|
|
32
|
+
accent: 'hsl(var(--atlas-accent) / <alpha-value>)',
|
|
33
|
+
'accent-foreground': 'hsl(var(--atlas-accent-foreground) / <alpha-value>)',
|
|
34
|
+
destructive: 'hsl(var(--atlas-destructive) / <alpha-value>)',
|
|
35
|
+
'destructive-foreground': 'hsl(var(--atlas-destructive-foreground) / <alpha-value>)',
|
|
36
|
+
success: 'hsl(var(--atlas-success) / <alpha-value>)',
|
|
37
|
+
'success-foreground': 'hsl(var(--atlas-success-foreground) / <alpha-value>)',
|
|
38
|
+
warning: 'hsl(var(--atlas-warning) / <alpha-value>)',
|
|
39
|
+
'warning-foreground': 'hsl(var(--atlas-warning-foreground) / <alpha-value>)',
|
|
40
|
+
info: 'hsl(var(--atlas-info) / <alpha-value>)',
|
|
41
|
+
'info-foreground': 'hsl(var(--atlas-info-foreground) / <alpha-value>)',
|
|
42
|
+
border: 'hsl(var(--atlas-border) / <alpha-value>)',
|
|
43
|
+
input: 'hsl(var(--atlas-input) / <alpha-value>)',
|
|
44
|
+
ring: 'hsl(var(--atlas-ring) / <alpha-value>)',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
borderRadius: {
|
|
48
|
+
atlas: 'var(--atlas-radius)',
|
|
49
|
+
'atlas-sm': 'var(--atlas-radius-sm)',
|
|
50
|
+
'atlas-md': 'var(--atlas-radius-md)',
|
|
51
|
+
'atlas-lg': 'var(--atlas-radius-lg)',
|
|
52
|
+
'atlas-xl': 'var(--atlas-radius-xl)',
|
|
53
|
+
'atlas-2xl': 'var(--atlas-radius-2xl)',
|
|
54
|
+
'atlas-full': 'var(--atlas-radius-full)',
|
|
55
|
+
},
|
|
56
|
+
boxShadow: {
|
|
57
|
+
'atlas-xs': 'var(--atlas-shadow-xs)',
|
|
58
|
+
'atlas-sm': 'var(--atlas-shadow-sm)',
|
|
59
|
+
'atlas-md': 'var(--atlas-shadow-md)',
|
|
60
|
+
'atlas-lg': 'var(--atlas-shadow-lg)',
|
|
61
|
+
'atlas-xl': 'var(--atlas-shadow-xl)',
|
|
62
|
+
'atlas-2xl': 'var(--atlas-shadow-2xl)',
|
|
63
|
+
},
|
|
64
|
+
transitionDuration: {
|
|
65
|
+
'atlas-instant': 'var(--atlas-duration-instant)',
|
|
66
|
+
'atlas-fast': 'var(--atlas-duration-fast)',
|
|
67
|
+
'atlas-normal': 'var(--atlas-duration-normal)',
|
|
68
|
+
'atlas-slow': 'var(--atlas-duration-slow)',
|
|
69
|
+
'atlas-slower': 'var(--atlas-duration-slower)',
|
|
70
|
+
},
|
|
71
|
+
transitionTimingFunction: {
|
|
72
|
+
'atlas-default': 'var(--atlas-ease-default)',
|
|
73
|
+
'atlas-in': 'var(--atlas-ease-in)',
|
|
74
|
+
'atlas-out': 'var(--atlas-ease-out)',
|
|
75
|
+
'atlas-in-out': 'var(--atlas-ease-in-out)',
|
|
76
|
+
'atlas-bounce': 'var(--atlas-ease-bounce)',
|
|
77
|
+
'atlas-spring': 'var(--atlas-ease-spring)',
|
|
78
|
+
},
|
|
79
|
+
fontFamily: {
|
|
80
|
+
'atlas-sans': 'var(--atlas-font-sans)',
|
|
81
|
+
'atlas-mono': 'var(--atlas-font-mono)',
|
|
82
|
+
},
|
|
83
|
+
fontSize: {
|
|
84
|
+
'atlas-xs': 'var(--atlas-text-xs)',
|
|
85
|
+
'atlas-sm': 'var(--atlas-text-sm)',
|
|
86
|
+
'atlas-base': 'var(--atlas-text-base)',
|
|
87
|
+
'atlas-lg': 'var(--atlas-text-lg)',
|
|
88
|
+
'atlas-xl': 'var(--atlas-text-xl)',
|
|
89
|
+
'atlas-2xl': 'var(--atlas-text-2xl)',
|
|
90
|
+
'atlas-3xl': 'var(--atlas-text-3xl)',
|
|
91
|
+
'atlas-4xl': 'var(--atlas-text-4xl)',
|
|
92
|
+
},
|
|
93
|
+
lineHeight: {
|
|
94
|
+
'atlas-none': 'var(--atlas-leading-none)',
|
|
95
|
+
'atlas-tight': 'var(--atlas-leading-tight)',
|
|
96
|
+
'atlas-snug': 'var(--atlas-leading-snug)',
|
|
97
|
+
'atlas-normal': 'var(--atlas-leading-normal)',
|
|
98
|
+
'atlas-relaxed': 'var(--atlas-leading-relaxed)',
|
|
99
|
+
'atlas-loose': 'var(--atlas-leading-loose)',
|
|
100
|
+
},
|
|
101
|
+
fontWeight: {
|
|
102
|
+
'atlas-thin': 'var(--atlas-font-thin)',
|
|
103
|
+
'atlas-light': 'var(--atlas-font-light)',
|
|
104
|
+
'atlas-normal': 'var(--atlas-font-normal)',
|
|
105
|
+
'atlas-medium': 'var(--atlas-font-medium)',
|
|
106
|
+
'atlas-semibold': 'var(--atlas-font-semibold)',
|
|
107
|
+
'atlas-bold': 'var(--atlas-font-bold)',
|
|
108
|
+
'atlas-extrabold': 'var(--atlas-font-extrabold)',
|
|
109
|
+
},
|
|
110
|
+
spacing: {
|
|
111
|
+
'atlas-0': 'var(--atlas-space-0)',
|
|
112
|
+
'atlas-px': 'var(--atlas-space-px)',
|
|
113
|
+
'atlas-0.5': 'var(--atlas-space-0-5)',
|
|
114
|
+
'atlas-1': 'var(--atlas-space-1)',
|
|
115
|
+
'atlas-1.5': 'var(--atlas-space-1-5)',
|
|
116
|
+
'atlas-2': 'var(--atlas-space-2)',
|
|
117
|
+
'atlas-2.5': 'var(--atlas-space-2-5)',
|
|
118
|
+
'atlas-3': 'var(--atlas-space-3)',
|
|
119
|
+
'atlas-3.5': 'var(--atlas-space-3-5)',
|
|
120
|
+
'atlas-4': 'var(--atlas-space-4)',
|
|
121
|
+
'atlas-5': 'var(--atlas-space-5)',
|
|
122
|
+
'atlas-6': 'var(--atlas-space-6)',
|
|
123
|
+
'atlas-7': 'var(--atlas-space-7)',
|
|
124
|
+
'atlas-8': 'var(--atlas-space-8)',
|
|
125
|
+
'atlas-9': 'var(--atlas-space-9)',
|
|
126
|
+
'atlas-10': 'var(--atlas-space-10)',
|
|
127
|
+
'atlas-12': 'var(--atlas-space-12)',
|
|
128
|
+
'atlas-14': 'var(--atlas-space-14)',
|
|
129
|
+
'atlas-16': 'var(--atlas-space-16)',
|
|
130
|
+
'atlas-20': 'var(--atlas-space-20)',
|
|
131
|
+
'atlas-24': 'var(--atlas-space-24)',
|
|
132
|
+
},
|
|
133
|
+
zIndex: {
|
|
134
|
+
'atlas-hide': 'var(--atlas-z-hide)',
|
|
135
|
+
'atlas-base': 'var(--atlas-z-base)',
|
|
136
|
+
'atlas-dropdown': 'var(--atlas-z-dropdown)',
|
|
137
|
+
'atlas-sticky': 'var(--atlas-z-sticky)',
|
|
138
|
+
'atlas-drawer': 'var(--atlas-z-drawer)',
|
|
139
|
+
'atlas-modal': 'var(--atlas-z-modal)',
|
|
140
|
+
'atlas-popover': 'var(--atlas-z-popover)',
|
|
141
|
+
'atlas-tooltip': 'var(--atlas-z-tooltip)',
|
|
142
|
+
'atlas-toast': 'var(--atlas-z-toast)',
|
|
143
|
+
'atlas-max': 'var(--atlas-z-max)',
|
|
144
|
+
},
|
|
145
|
+
ringWidth: {
|
|
146
|
+
atlas: 'var(--atlas-ring-width)',
|
|
147
|
+
},
|
|
148
|
+
ringOffsetWidth: {
|
|
149
|
+
atlas: 'var(--atlas-ring-offset)',
|
|
150
|
+
},
|
|
151
|
+
backdropBlur: {
|
|
152
|
+
'atlas-glass': 'var(--atlas-glass-blur)',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
};
|