@nuvoui/core 1.1.2 → 1.1.4
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/README.md +56 -47
- package/dist/nuvoui.css +1 -1
- package/package.json +11 -4
- package/src/styles/base/_base.scss +97 -7
- package/src/styles/base/_reset.scss +2 -6
- package/src/styles/index.scss +1 -3
- package/src/styles/layouts/_flex.scss +1 -1
- package/src/styles/mixins-map.scss +0 -12
- package/src/styles/themes/_theme.scss +63 -114
- package/src/styles/utilities/_borders.scss +1 -5
- package/src/styles/utilities/_colors.scss +33 -79
- package/src/styles/utilities/_media-queries.scss +1 -1
- package/src/styles/utilities/_shadows.scss +1 -1
- package/src/styles/utilities/_spacing.scss +14 -15
- package/src/styles/utilities/_variables.scss +51 -22
- package/src/styles/themes/_dark.scss +0 -26
- package/src/styles/themes/_light.scss +0 -23
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
// Global variables that might be used across different modules
|
|
2
4
|
$enable-dark-mode: true !default;
|
|
3
5
|
$enable-rtl: true !default;;
|
|
@@ -5,25 +7,52 @@ $enable-reduced-motion: true !default;;
|
|
|
5
7
|
|
|
6
8
|
$column-count: 12 !default;
|
|
7
9
|
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
|
|
15
|
-
$color-
|
|
10
|
+
$primary: #007bff !default;
|
|
11
|
+
$secondary: #6c757d !default;
|
|
12
|
+
$success: #28a745 !default;
|
|
13
|
+
$danger: #dc3545 !default;
|
|
14
|
+
$warning: #ffc107 !default;
|
|
15
|
+
$info: #17a2b8 !default;
|
|
16
|
+
|
|
17
|
+
$color-primitives: (
|
|
18
|
+
'gray': #6b7280,
|
|
19
|
+
'red': #ef4444,
|
|
20
|
+
'blue': #3b82f6,
|
|
21
|
+
'green': #22c55e,
|
|
22
|
+
'yellow': #eab308,
|
|
23
|
+
'purple': #a855f7,
|
|
24
|
+
'pink': #ec4899
|
|
25
|
+
) !default;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
$theme-tokens: (
|
|
29
|
+
'background',
|
|
30
|
+
'foreground',
|
|
31
|
+
'surface',
|
|
32
|
+
'border',
|
|
33
|
+
'text-primary',
|
|
34
|
+
'text-secondary'
|
|
35
|
+
) !default;
|
|
36
|
+
|
|
37
|
+
// Default theme config (can be overridden)
|
|
38
|
+
$light-theme: (
|
|
39
|
+
'background': #ffffff,
|
|
40
|
+
'foreground': #000000,
|
|
41
|
+
'surface': #ffffff,
|
|
42
|
+
'border': #e5e7eb,
|
|
43
|
+
'text-primary': #000000,
|
|
44
|
+
'text-secondary': #4b5563
|
|
45
|
+
) !default;
|
|
46
|
+
|
|
47
|
+
$dark-theme: (
|
|
48
|
+
'background': #000000,
|
|
49
|
+
'foreground': #ffffff,
|
|
50
|
+
'surface': #1a1a1a,
|
|
51
|
+
'border': #2e2e2e,
|
|
52
|
+
'text-primary': #ffffff,
|
|
53
|
+
'text-secondary': #a3a3a3
|
|
54
|
+
) !default;
|
|
16
55
|
|
|
17
|
-
$colors: (
|
|
18
|
-
'primary': $color-primary,
|
|
19
|
-
'secondary': $color-secondary,
|
|
20
|
-
'success': $color-success,
|
|
21
|
-
'danger': $color-danger,
|
|
22
|
-
'warning': $color-warning,
|
|
23
|
-
'info': $color-info,
|
|
24
|
-
'light': $color-light,
|
|
25
|
-
'dark': $color-dark
|
|
26
|
-
);
|
|
27
56
|
|
|
28
57
|
// Breakpoints
|
|
29
58
|
$breakpoints: (
|
|
@@ -32,7 +61,7 @@ $breakpoints: (
|
|
|
32
61
|
'md': 768px,
|
|
33
62
|
'lg': 1024px,
|
|
34
63
|
'xl': 1280px,
|
|
35
|
-
'
|
|
64
|
+
'2xl': 1536px,
|
|
36
65
|
) !default;
|
|
37
66
|
|
|
38
67
|
// Container max-widths
|
|
@@ -42,7 +71,7 @@ $container-max-widths: (
|
|
|
42
71
|
'md': 720px,
|
|
43
72
|
'lg': 960px,
|
|
44
73
|
'xl': 1140px,
|
|
45
|
-
'
|
|
74
|
+
'2xl': 1320px,
|
|
46
75
|
) !default;
|
|
47
76
|
|
|
48
77
|
// _variables.scss
|
|
@@ -69,9 +98,9 @@ $padding-map: (
|
|
|
69
98
|
) !default;
|
|
70
99
|
|
|
71
100
|
$spacings: (
|
|
72
|
-
0,1,2,3,4,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,
|
|
101
|
+
0,1,2,3,4,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,150,200,250,300,350,400,450,500
|
|
73
102
|
) !default;
|
|
74
103
|
|
|
75
104
|
$percentages: (
|
|
76
|
-
0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90,
|
|
105
|
+
0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 100
|
|
77
106
|
) !default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use './theme' as *;
|
|
4
|
-
@use '../utilities/variables' as *;
|
|
5
|
-
|
|
6
|
-
[data-theme="dark"] {
|
|
7
|
-
// ... other dark theme variables ...
|
|
8
|
-
@include generate-theme-colors('dark');
|
|
9
|
-
|
|
10
|
-
--font-family-heading: var(--font-family-base);
|
|
11
|
-
$base-dark-color: map.get($colors, 'dark');
|
|
12
|
-
|
|
13
|
-
--input-bg: #{color.scale($base-dark-color, $lightness: -20%)};
|
|
14
|
-
|
|
15
|
-
// --text-primary: #{map.get($colors, 'light')};
|
|
16
|
-
// --link-color: #{color.scale(map.get($colors, 'primary'), $lightness: 10%)};
|
|
17
|
-
// --link-hover-color: #{color.scale(map.get($colors, 'primary'), $lightness: 20%)};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// --nav-bg: #{map.get($colors, 'dark')};
|
|
21
|
-
// // --nav-hover: #{color.scale(map.get($colors, 'light'), $lightness: -10%)};
|
|
22
|
-
// --nav-hover: black;
|
|
23
|
-
// --nav-text: #{map.get($colors, 'white')};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use './theme' as *;
|
|
4
|
-
@use '../utilities/variables' as *;
|
|
5
|
-
|
|
6
|
-
[data-theme="light"] {
|
|
7
|
-
// ... other light theme variables ...
|
|
8
|
-
@include generate-theme-colors('light');
|
|
9
|
-
|
|
10
|
-
$base-dark-color: map.get($colors, 'light');
|
|
11
|
-
|
|
12
|
-
--input-bg: #{color.scale($base-dark-color, $lightness: 20%)};
|
|
13
|
-
|
|
14
|
-
// --font-family-heading: var(--font-family-base);
|
|
15
|
-
// --text-primary: #{map.get($colors, 'dark')};
|
|
16
|
-
// --link-color: #{map.get($colors, 'primary')};
|
|
17
|
-
// --link-hover-color: #{color.scale(map.get($colors, 'primary'), $lightness: -10%)};
|
|
18
|
-
|
|
19
|
-
// --nav-bg: #{map.get($colors, 'light')};
|
|
20
|
-
// // --nav-hover: #{color.scale(map.get($colors, 'light'), $lightness: -10%)};
|
|
21
|
-
// --nav-hover: white;
|
|
22
|
-
// --nav-text: #{map.get($colors, 'dark')};
|
|
23
|
-
}
|