breakouts 0.5.0 → 0.5.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.
- package/README.md +10 -10
- package/package.json +3 -3
- package/src/theme/_chupa-pop.scss +14 -19
- package/src/theme/_medical.scss +20 -27
- package/src/theme/_tootsie-pop.scss +17 -24
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ bun add breakouts
|
|
|
25
25
|
### SCSS with `@use`
|
|
26
26
|
|
|
27
27
|
```scss
|
|
28
|
-
@use 'breakouts' as *;
|
|
28
|
+
@use 'breakouts/src/breakouts' as *;
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
### Import CSS directly
|
|
@@ -161,7 +161,7 @@ View the live demo via GitHub Pages:
|
|
|
161
161
|
Override core variables before importing:
|
|
162
162
|
|
|
163
163
|
```scss
|
|
164
|
-
@use 'breakouts' with (
|
|
164
|
+
@use 'breakouts/src/breakouts' with (
|
|
165
165
|
$color-primary: #d1ff4a,
|
|
166
166
|
$color-accent: #8a2be2
|
|
167
167
|
);
|
|
@@ -171,13 +171,13 @@ Or create a custom theme:
|
|
|
171
171
|
|
|
172
172
|
```scss
|
|
173
173
|
// my-theme.scss
|
|
174
|
-
@forward 'breakouts/src/
|
|
174
|
+
@forward 'breakouts/src/base/variables' with (
|
|
175
175
|
$color-primary: #d1ff4a,
|
|
176
176
|
$color-accent: #8a2be2
|
|
177
177
|
);
|
|
178
178
|
|
|
179
|
-
@use 'breakouts/src/
|
|
180
|
-
@forward 'breakouts/src/
|
|
179
|
+
@use 'breakouts/src/base/variables' as *;
|
|
180
|
+
@forward 'breakouts/src/base/colors';
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
---
|
|
@@ -186,9 +186,9 @@ Or create a custom theme:
|
|
|
186
186
|
|
|
187
187
|
| Theme Name | Description | Import Path |
|
|
188
188
|
|----------------|----------------------------------------------------------------|----------------------------------------|
|
|
189
|
-
| **Chupa Pop** | Bold and colorful palette inspired by candy tones | `@use 'breakouts/theme/chupa-pop'` |
|
|
190
|
-
| **Medical** | Calm, healthcare-inspired palette with blues and greens | `@use 'breakouts/theme/medical'` |
|
|
191
|
-
| **Tootsie Pop**| Retro and playful candy-themed palette | `@use 'breakouts/theme/tootsie-pop'` |
|
|
189
|
+
| **Chupa Pop** | Bold and colorful palette inspired by candy tones | `@use 'breakouts/src/theme/chupa-pop'` |
|
|
190
|
+
| **Medical** | Calm, healthcare-inspired palette with blues and greens | `@use 'breakouts/src/theme/medical'` |
|
|
191
|
+
| **Tootsie Pop**| Retro and playful candy-themed palette | `@use 'breakouts/src/theme/tootsie-pop'` |
|
|
192
192
|
|
|
193
193
|
---
|
|
194
194
|
|
|
@@ -197,8 +197,8 @@ Or create a custom theme:
|
|
|
197
197
|
You can write your own mixins or import individual parts:
|
|
198
198
|
|
|
199
199
|
```scss
|
|
200
|
-
@use 'breakouts/
|
|
201
|
-
@use 'breakouts/base/typography';
|
|
200
|
+
@use 'breakouts/src/base/spacing';
|
|
201
|
+
@use 'breakouts/src/base/typography';
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
---
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "breakouts",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A personal SCSS/CSS layout utility framework.",
|
|
5
5
|
"main": "dist/breakouts.css",
|
|
6
6
|
"files": [
|
|
7
|
-
"breakouts.scss",
|
|
8
7
|
"src/",
|
|
9
8
|
"dist/"
|
|
10
9
|
],
|
|
@@ -18,5 +17,6 @@
|
|
|
18
17
|
"license": "MIT",
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"sass": "^1.86.2"
|
|
21
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"sass": "src/breakouts.scss"
|
|
22
22
|
}
|
|
@@ -4,26 +4,21 @@
|
|
|
4
4
|
// The theme variables are used to customize the appearance of the Chupa Pop theme.
|
|
5
5
|
// The theme variables are defined using the SCSS @use and @forward directives.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$
|
|
9
|
-
$
|
|
7
|
+
@forward '../base/variables' with (
|
|
8
|
+
$color-primary: #ecb838,
|
|
9
|
+
$color-primary-dark: darken(#ecb838, 15%),
|
|
10
|
+
$color-primary-light: lighten(#ecb838, 15%),
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
$color-primary-light: lighten($primary, 15%),
|
|
12
|
+
$color-secondary: #ab4073,
|
|
13
|
+
$color-secondary-dark: darken(#ab4073, 15%),
|
|
14
|
+
$color-secondary-light: lighten(#ab4073, 15%),
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
$color-accent: $accent,
|
|
21
|
-
$color-accent-dark: darken($accent, 15%),
|
|
22
|
-
$color-accent-light: lighten($accent, 15%),
|
|
16
|
+
$color-accent: #196484,
|
|
17
|
+
$color-accent-dark: darken(#196484, 15%),
|
|
18
|
+
$color-accent-light: lighten(#196484, 15%),
|
|
23
19
|
);
|
|
24
20
|
|
|
25
|
-
@
|
|
26
|
-
@forward '
|
|
27
|
-
@forward '
|
|
28
|
-
@forward '
|
|
29
|
-
@forward 'breakouts/src/base/layout';
|
|
21
|
+
@forward '../base/colors';
|
|
22
|
+
@forward '../base/reset';
|
|
23
|
+
@forward '../base/typography';
|
|
24
|
+
@forward '../base/layout';
|
package/src/theme/_medical.scss
CHANGED
|
@@ -4,36 +4,29 @@
|
|
|
4
4
|
// The theme variables are used to customize the appearance of the Medical theme.
|
|
5
5
|
// The theme variables are defined using the SCSS @use and @forward directives.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$background: #FFFFFF !default;
|
|
7
|
+
@forward '../base/variables' with (
|
|
8
|
+
$color-primary: #4682B4,
|
|
9
|
+
$color-primary-dark: darken(#4682B4, 15%),
|
|
10
|
+
$color-primary-light: lighten(#4682B4, 15%),
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
$color-
|
|
15
|
-
$color-
|
|
16
|
-
$color-primary-light: lighten($primary, 15%),
|
|
12
|
+
$color-secondary: #9DC183,
|
|
13
|
+
$color-secondary-dark: darken(#9DC183, 15%),
|
|
14
|
+
$color-secondary-light: lighten(#9DC183, 15%),
|
|
17
15
|
|
|
18
|
-
$color-
|
|
19
|
-
$color-
|
|
20
|
-
$color-
|
|
16
|
+
$color-accent: #A9A9A9,
|
|
17
|
+
$color-accent-dark: darken(#A9A9A9, 15%),
|
|
18
|
+
$color-accent-light: lighten(#A9A9A9, 15%),
|
|
21
19
|
|
|
22
|
-
$color-
|
|
23
|
-
$color-
|
|
24
|
-
$color-
|
|
20
|
+
$color-muted: #D3D3D3,
|
|
21
|
+
$color-muted-dark: darken(#D3D3D3, 15%),
|
|
22
|
+
$color-muted-light: lighten(#D3D3D3, 15%),
|
|
25
23
|
|
|
26
|
-
$color-
|
|
27
|
-
$color-
|
|
28
|
-
$color-
|
|
29
|
-
|
|
30
|
-
$color-background: $background,
|
|
31
|
-
$color-background-dark: darken($background, 5%),
|
|
32
|
-
$color-background-light: lighten($background, 5%)
|
|
24
|
+
$color-background: #FFFFFF,
|
|
25
|
+
$color-background-dark: darken(#FFFFFF, 5%),
|
|
26
|
+
$color-background-light: lighten(#FFFFFF, 5%)
|
|
33
27
|
);
|
|
34
28
|
|
|
35
|
-
@
|
|
36
|
-
@forward '
|
|
37
|
-
@forward '
|
|
38
|
-
@forward '
|
|
39
|
-
@forward 'breakouts/src/base/layout';
|
|
29
|
+
@forward '../base/colors';
|
|
30
|
+
@forward '../base/reset';
|
|
31
|
+
@forward '../base/typography';
|
|
32
|
+
@forward '../base/layout';
|
|
@@ -4,36 +4,29 @@
|
|
|
4
4
|
// The theme variables are used to customize the appearance of the Tootsie Pop theme.
|
|
5
5
|
// The theme variables are defined using the SCSS @use and @forward directives.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$background: #4F2F4C !default;
|
|
12
|
-
|
|
13
|
-
@forward 'breakouts/src/theme/variables' with (
|
|
14
|
-
$color-primary: $primary,
|
|
15
|
-
$color-primary-dark: darken($primary, 15%),
|
|
16
|
-
$color-primary-light: lighten($primary, 15%),
|
|
7
|
+
@forward '../base/variables' with (
|
|
8
|
+
$color-primary: #93329E,
|
|
9
|
+
$color-primary-dark: darken(#93329E, 15%),
|
|
10
|
+
$color-primary-light: lighten(#93329E, 15%),
|
|
17
11
|
|
|
18
12
|
$color-secondary: $secondary,
|
|
19
13
|
$color-secondary-dark: darken($secondary, 15%),
|
|
20
14
|
$color-secondary-light: lighten($secondary, 15%),
|
|
21
15
|
|
|
22
|
-
$color-accent:
|
|
23
|
-
$color-accent-dark: darken(
|
|
24
|
-
$color-accent-light: lighten(
|
|
16
|
+
$color-accent: #E94057,
|
|
17
|
+
$color-accent-dark: darken(#E94057, 15%),
|
|
18
|
+
$color-accent-light: lighten(#E94057, 15%),
|
|
25
19
|
|
|
26
|
-
$color-muted:
|
|
27
|
-
$color-muted-dark: darken(
|
|
28
|
-
$color-muted-light: lighten(
|
|
20
|
+
$color-muted: #FFE5B4,
|
|
21
|
+
$color-muted-dark: darken(#FFE5B4, 15%),
|
|
22
|
+
$color-muted-light: lighten(#FFE5B4, 15%),
|
|
29
23
|
|
|
30
|
-
$color-background:
|
|
31
|
-
$color-background-dark: darken(
|
|
32
|
-
$color-background-light: lighten(
|
|
24
|
+
$color-background: #4F2F4C,
|
|
25
|
+
$color-background-dark: darken(#4F2F4C, 5%),
|
|
26
|
+
$color-background-light: lighten(#4F2F4C, 5%)
|
|
33
27
|
);
|
|
34
28
|
|
|
35
|
-
@
|
|
36
|
-
@forward '
|
|
37
|
-
@forward '
|
|
38
|
-
@forward '
|
|
39
|
-
@forward 'breakouts/src/base/layout';
|
|
29
|
+
@forward '../base/colors';
|
|
30
|
+
@forward '../base/reset';
|
|
31
|
+
@forward '../base/typography';
|
|
32
|
+
@forward '../base/layout';
|