@oardi/css-utils 0.124.0 → 0.126.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/package.json +1 -1
- package/readme.md +2 -0
- package/scss/flex-responsive.scss +52 -1
- package/scss/flex.scss +51 -2
- package/scss/theme.scss +12 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -104,6 +104,8 @@ All solid `.bg-*` utilities provide authored text colors and matching SVG fills.
|
|
|
104
104
|
|
|
105
105
|
When overriding theme colors, keep their `--on-*` tokens in sync. When changing surfaces, update their matching text tokens. Gray fallbacks are calculated at Sass compilation time; runtime gray or black/white token overrides require checking foreground contrast and, where needed, an explicit `.text-*` utility. Explicit text utilities continue to override the automatic foreground.
|
|
106
106
|
|
|
107
|
+
Use `accent` for supplementary brand or category emphasis without status meaning. The `--accent`, `--accent-hover`, `--accent-active` and `--on-accent` tokens are available in both themes and can be overridden like other theme colors. The color also generates `.bg-accent`, `.text-accent`, `.text-underline-accent`, `.border-accent`, `.btn-accent`, `.chip-accent` and `.icon-btn-accent` variants. Keep `--on-accent` readable against all three accent shades when customizing them.
|
|
108
|
+
|
|
107
109
|
These versions define the support target, not a claim that every browser release is exercised in CI. Regression tests cover the compiled fallback and enhancement branches and default light/dark contrast; application integrations should also be checked in their target browsers. The SCSS package supplies no JavaScript: interactive behavior belongs to the consuming application.
|
|
108
110
|
|
|
109
111
|
## Customize the design
|
|
@@ -73,7 +73,29 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// align self
|
|
76
|
-
|
|
76
|
+
.align-self-#{$bp}-auto {
|
|
77
|
+
align-self: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.align-self-#{$bp}-start {
|
|
81
|
+
align-self: start;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.align-self-#{$bp}-end {
|
|
85
|
+
align-self: end;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.align-self-#{$bp}-center {
|
|
89
|
+
align-self: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.align-self-#{$bp}-baseline {
|
|
93
|
+
align-self: baseline;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.align-self-#{$bp}-stretch {
|
|
97
|
+
align-self: stretch;
|
|
98
|
+
}
|
|
77
99
|
|
|
78
100
|
// fill
|
|
79
101
|
.flex-#{$bp}-fill {
|
|
@@ -106,6 +128,35 @@
|
|
|
106
128
|
.flex-#{$bp}-nowrap {
|
|
107
129
|
flex-wrap: nowrap;
|
|
108
130
|
}
|
|
131
|
+
|
|
132
|
+
// align content
|
|
133
|
+
.align-content-#{$bp}-start {
|
|
134
|
+
align-content: start;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.align-content-#{$bp}-end {
|
|
138
|
+
align-content: end;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.align-content-#{$bp}-center {
|
|
142
|
+
align-content: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.align-content-#{$bp}-between {
|
|
146
|
+
align-content: space-between;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.align-content-#{$bp}-around {
|
|
150
|
+
align-content: space-around;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.align-content-#{$bp}-evenly {
|
|
154
|
+
align-content: space-evenly;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.align-content-#{$bp}-stretch {
|
|
158
|
+
align-content: stretch;
|
|
159
|
+
}
|
|
109
160
|
}
|
|
110
161
|
}
|
|
111
162
|
}
|
package/scss/flex.scss
CHANGED
|
@@ -72,7 +72,29 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// align self
|
|
75
|
-
|
|
75
|
+
.align-self-auto {
|
|
76
|
+
align-self: auto;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.align-self-start {
|
|
80
|
+
align-self: start;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.align-self-end {
|
|
84
|
+
align-self: end;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.align-self-center {
|
|
88
|
+
align-self: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.align-self-baseline {
|
|
92
|
+
align-self: baseline;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.align-self-stretch {
|
|
96
|
+
align-self: stretch;
|
|
97
|
+
}
|
|
76
98
|
|
|
77
99
|
.flex-1 {
|
|
78
100
|
flex: 1 1 0;
|
|
@@ -109,6 +131,33 @@
|
|
|
109
131
|
.flex-nowrap {
|
|
110
132
|
flex-wrap: nowrap;
|
|
111
133
|
}
|
|
134
|
+
|
|
112
135
|
// align-content
|
|
113
|
-
|
|
136
|
+
.align-content-start {
|
|
137
|
+
align-content: start;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.align-content-end {
|
|
141
|
+
align-content: end;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.align-content-center {
|
|
145
|
+
align-content: center;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.align-content-between {
|
|
149
|
+
align-content: space-between;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.align-content-around {
|
|
153
|
+
align-content: space-around;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.align-content-evenly {
|
|
157
|
+
align-content: space-evenly;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.align-content-stretch {
|
|
161
|
+
align-content: stretch;
|
|
162
|
+
}
|
|
114
163
|
}
|
package/scss/theme.scss
CHANGED
|
@@ -16,6 +16,12 @@ $-colors: (
|
|
|
16
16
|
active: #394551,
|
|
17
17
|
on: #ffffff,
|
|
18
18
|
),
|
|
19
|
+
'accent': (
|
|
20
|
+
base: #b515a7,
|
|
21
|
+
hover: #9d128f,
|
|
22
|
+
active: #870c7a,
|
|
23
|
+
on: #ffffff,
|
|
24
|
+
),
|
|
19
25
|
'success': (
|
|
20
26
|
base: #087f5b,
|
|
21
27
|
hover: #06704f,
|
|
@@ -49,6 +55,12 @@ $-dark-colors: (
|
|
|
49
55
|
active: #d1d8e0,
|
|
50
56
|
on: #1a1a1a,
|
|
51
57
|
),
|
|
58
|
+
'accent': (
|
|
59
|
+
base: #f291dc,
|
|
60
|
+
hover: #f6b0e6,
|
|
61
|
+
active: #f9c9ee,
|
|
62
|
+
on: #1a1a1a,
|
|
63
|
+
),
|
|
52
64
|
'success': (
|
|
53
65
|
base: #58d3a1,
|
|
54
66
|
hover: #72ddb2,
|