Rename PostCSS files to .pcss
(#22769)
* Rename PostCSS files to `.pcss` * Make Stylelint happy * Make Stylelint happy v2 * Update CompatibilityView.tsx * Update res/css/structures/ErrorView.pcss Co-authored-by: Michael Weimann <mail@michael-weimann.eu> * Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/pcss Conflicts: package.json res/css/_components.scss res/css/structures/_NotificationPanel.pcss res/css/views/dialogs/_SpotlightDialog.pcss res/css/views/rooms/_EventTile.pcss res/css/views/rooms/_ReadReceiptGroup.pcss yarn.lock * Only use CI_PACKAGE mode on develop, it skips minification which can find some errors * Keep name to not break existing PRs Co-authored-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
parent
ecda0a1073
commit
64ed6ebdad
12 changed files with 144 additions and 440 deletions
|
@ -11,11 +11,11 @@ As of March 2022, skins are not fully supported; Element is the only available s
|
|||
To define a theme for Element:
|
||||
|
||||
1. Pick a name, e.g. `teal`. at time of writing we have `light` and `dark`.
|
||||
2. Fork `src/skins/vector/css/themes/dark.scss` to be `teal.scss`
|
||||
3. Fork `src/skins/vector/css/themes/_base.scss` to be `_teal.scss`
|
||||
4. Override variables in `_teal.scss` as desired. You may wish to delete ones
|
||||
which don't differ from `_base.scss`, to make it clear which are being
|
||||
overridden. If every single colour is being changed (as per `_dark.scss`)
|
||||
2. Fork `src/skins/vector/css/themes/dark.pcss` to be `teal.pcss`
|
||||
3. Fork `src/skins/vector/css/themes/_base.pcss` to be `_teal.pcss`
|
||||
4. Override variables in `_teal.pcss` as desired. You may wish to delete ones
|
||||
which don't differ from `_base.pcss`, to make it clear which are being
|
||||
overridden. If every single colour is being changed (as per `_dark.pcss`)
|
||||
then you might as well keep them all.
|
||||
5. Add the theme to the list of entrypoints in webpack.config.js
|
||||
6. Add the theme to the list of themes in matrix-react-sdk's UserSettings.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue