Skip to content

Commit bcad668

Browse files
committed
💄 Upgrade styling
1 parent 3c18ca5 commit bcad668

File tree

18 files changed

+1066
-155
lines changed

18 files changed

+1066
-155
lines changed

‎.stylelintrc.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": "stylelint-config-recommended-scss",
3+
"rules": {
4+
"color-named": "never",
5+
"font-family-name-quotes": "always-where-required",
6+
"font-weight-notation": "named-where-possible",
7+
"function-url-no-scheme-relative": true,
8+
"function-url-quotes": "always",
9+
"value-keyword-case": "lower",
10+
"unit-disallowed-list": [],
11+
"no-descending-specificity": true,
12+
"no-duplicate-selectors": true,
13+
"font-family-no-missing-generic-family-keyword": null,
14+
"property-no-unknown": [
15+
true,
16+
{
17+
"ignoreProperties": ["/^lost-/"]
18+
}
19+
],
20+
"selector-pseudo-class-no-unknown": [
21+
true,
22+
{ "ignorePseudoClasses": ["global"] }
23+
]
24+
},
25+
"ignoreFiles": ["node_modules/*"],
26+
"defaultSeverity": "error",
27+
"customSyntax": "postcss-html"
28+
}

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Feel free to check [our documentation](https://docs.astro.build) or jump into ou
5050

5151
`src/config.ts` contains several data objects that describe metadata about your site like title, description, default language, and Open Graph details. You can customize these to match your project.
5252

53-
### CSS styling
53+
### SCSS styling
5454

55-
The theme's look and feel is controlled by a few key variables that you can customize yourself. You'll find them in the `src/styles/theme.css` CSS file.
55+
The theme's look and feel is controlled by a few key variables that you can customize yourself. You'll find them in the `src/styles/theme.scss` SCSS file.
5656

5757
If you've never worked with CSS variables before, give [MDN's guide on CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) a quick read.
5858

‎package.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"preview": "astro preview",
1111
"start": "astro dev",
1212
"prettier:check": "prettier --check --plugin-search-dir=. .",
13-
"prettier:format": "prettier --cache --write --plugin-search-dir=. ."
13+
"format": "prettier --cache --write --plugin-search-dir=. .",
14+
"lint:scss": "stylelint \"src/**/*.{astro,scss}\""
1415
},
1516
"dependencies": {
1617
"@algolia/client-search": "^4.15.0",
@@ -31,7 +32,12 @@
3132
"devDependencies": {
3233
"@astrojs/mdx": "^0.17.2",
3334
"html-escaper": "^3.0.3",
35+
"postcss": "^8.4.21",
36+
"postcss-html": "^1.5.0",
3437
"prettier": "^2.8.4",
35-
"prettier-plugin-astro": "^0.8.0"
38+
"sass": "^1.58.3",
39+
"stylelint": "^15.2.0",
40+
"stylelint-config-recommended-scss": "^9.0.1",
41+
"stylelint-config-standard": "^30.0.1"
3642
}
3743
}

0 commit comments

Comments
 (0)