Skip to content

Commit bcf8b0d

Browse files
committed
added theme support + color modes
1 parent 79afa06 commit bcf8b0d

21 files changed

+182
-64
lines changed

dist/main.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/main.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/utility.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/utility.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webpixels/css",
33
"description": "Utility and component-centric design system based on Bootstrap for fast, responsive UI development.",
4-
"version": "2.0.0-beta.13",
4+
"version": "2.0.0-beta.14",
55
"version_short": "2.0",
66
"license": "MIT",
77
"style": "dist/index.css",
@@ -33,7 +33,7 @@
3333
"bugs": {
3434
"url": "https://github.com/webpixels/css/issues"
3535
},
36-
"bin": {
36+
"bin": {
3737
"webpixels": "./bin.js"
3838
},
3939
"scripts": {
@@ -58,13 +58,16 @@
5858
"devDependencies": {
5959
"autoprefixer": "^10.2.6",
6060
"find-unused-sass-variables": "^4.0.4",
61+
"fs-extra": "^11.1.1",
6162
"install": "^0.13.0",
63+
"minimist": "^1.2.8",
6264
"nodemon": "^2.0.7",
6365
"npm": "^8.19.2",
6466
"npm-run-all": "^4.1.5",
6567
"postcss": "^8.3.0",
6668
"postcss-cli": "^8.3.1",
6769
"purgecss": "^4.0.3",
70+
"replace-in-file": "^7.0.1",
6871
"sass": "^1.62.1",
6972
"serve": "^14.0.1",
7073
"stylelint": "^14.11.0",

scss/core/_colors.scss

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,41 @@ $gray-300: #cbd5e1 !default;
99
$gray-400: #94a3b8 !default;
1010
$gray-500: #64748b !default;
1111
$gray-600: #475569 !default;
12-
$gray-700: #334155 !default; // Used for text color
13-
$gray-800: #1e293b !default; // Used for headings color
12+
$gray-700: #334155 !default;
13+
$gray-800: #1e293b !default;
1414
$gray-900: #0f172a !default;
15+
$gray-950: #020617 !default;
1516
$black: #000 !default;
1617

18+
$grays: (
19+
"50": $gray-50,
20+
"100": $gray-100,
21+
"200": $gray-200,
22+
"300": $gray-300,
23+
"400": $gray-400,
24+
"500": $gray-500,
25+
"600": $gray-600,
26+
"700": $gray-700,
27+
"800": $gray-800,
28+
"900": $gray-900,
29+
"950": $gray-950
30+
) !default;
31+
1732
// Base colors
18-
$blue: #0099FF !default;
19-
$indigo: #5C60F5 !default;
20-
$purple: #8957FF !default;
21-
$pink: #FF579A !default;
22-
$magenta: #EE33FF !default;
23-
$red: #FF3366 !default;
24-
$orange: #FF8C00 !default;
25-
$yellow: #FFBB00 !default;
26-
$lime: #84cc16 !default;
27-
$green: #00CC88 !default;
28-
$teal: #22DDDD !default;
29-
$cyan: #00D4FF !default;
33+
$blue: #3b82f6 !default;
34+
$indigo: #6366f1 !default;
35+
$purple: #8b5cf6 !default;
36+
$pink: #ec4899 !default;
37+
$red: #ef4444 !default;
38+
$orange: #f97316 !default;
39+
$yellow: #eab308 !default;
40+
$green: #22c55e !default;
41+
$teal: #14b8a6 !default;
42+
$cyan: #06b6d4 !default;
3043

3144
// Theme colors
32-
$primary: $gray-900 !default;
33-
$secondary: $lime !default;
45+
$primary: $purple !default;
46+
$secondary: $gray-900 !default;
3447
$success: $green !default;
3548
$info: $cyan !default;
3649
$warning: $orange !default;

scss/core/_root.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55
--#{$prefix}#{$color}: #{$value};
66
}
77

8+
// Fonts
9+
--#{$prefix}font-display: #{inspect($font-display-bundle)};
10+
--#{$prefix}font-serif: #{inspect($font-serif-bundle)};
11+
--#{$prefix}font-monospace: #{inspect($font-monospace-bundle)};
12+
813
// Logo
914
.logo-light {
1015
display: none;
1116
}
1217
.logo-dark {
1318
display: block;
1419
}
15-
16-
// Fonts
17-
--#{$prefix}font-display: #{inspect($font-display-bundle)};
18-
--#{$prefix}font-serif: #{inspect($font-serif-bundle)};
19-
--#{$prefix}font-monospace: #{inspect($font-monospace-bundle)};
20-
2120
}
2221

2322
@if $enable-dark-mode {
@@ -30,7 +29,6 @@
3029
display: none;
3130
}
3231

33-
3432
// Buttons
3533
.btn-neutral {
3634
--#{$prefix}btn-bg: var(--#{$prefix}gray-800);

scss/extra.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Webpixels CSS v2.0.0-beta.13 (https://webpixels.io/)
2+
* Webpixels CSS v2.0.0-beta.14 (https://webpixels.io/)
33
* Copyright 2023 Webpixels
44
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
55
*/

scss/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Webpixels CSS v2.0.0-beta.13 (https://webpixels.io/)
2+
* Webpixels CSS v2.0.0-beta.14 (https://webpixels.io/)
33
* Copyright 2023 Webpixels
44
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
55
*/

scss/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Webpixels CSS v2.0.0-beta.13 (https://webpixels.io/)
2+
* Webpixels CSS v2.0.0-beta.14 (https://webpixels.io/)
33
* Copyright 2023 Webpixels
44
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
55
*/

0 commit comments

Comments
 (0)