Comments (4)
Change out the variable names to have --wp--preset--<PRESET_TYPE>--<PRESET_SLUG>
Create elements that override core colors by
:root {
--wp--preset--color--cyan-bluish-gray: <new_value>;
--wp--preset--color--pale-pink: <new_value>;
}
change out colors in the inc/Editor/Component.php
to have plain names with theme-
prefixed except for where custom theme colors are in place
from wprig.
Couldn't all of this just be managed by adding a theme.json to the theme? Or do you have something else in mind here?
from wprig.
@robruiz this definitely can be managed by adding a theme.json file to the theme. I think part of the reason i put this in there was to make sure it got on the to do list.
Steps to take:
- Add theme.json file to theme
- Add theme.json to watch file for browsersync
- Remove the custom colors from the /inc/editor/component.php file.
wprig/inc/Editor/Component.php
Lines 61 to 120 in 220580b
- While we're at it we should remove custom font size from the same file and add it to the theme.json file.
- Remove the css support for the custom colors
wprig/assets/css/src/_custom-properties.css
Lines 34 to 45 in 220580b
- Remove the css support for the custom fonts
wprig/assets/css/src/_custom-properties.css
Lines 18 to 22 in 220580b
- Change out the css file to incorporate new variable names.
Side note we can probably get rid of almost all of the custom properties css file and plug those into the theme.json file. The only thing I have found that is definitely needed to stay has been the --content-width
variable. This change will most likely end up breaking existing themes that does use the custom variables though.
from wprig.
As I'm going down the list this pretty much addresses making wp-rig into a universal theme #777 . I guess if we're not looking into doing that this is probably inconsequential but at least this can lend itself to a guide.
from wprig.
Related Issues (20)
- theme.json HOT 1
- Can't extend any core classes HOT 2
- Integrate Theme.Json into WP-Rig HOT 2
- Bug blank page editor with 5.9 .. HOT 4
- Styles task hangs and never seems to complete HOT 1
- Inline SVG undefined properties HOT 1
- Mobile menu obscures content when toggled off HOT 2
- Running production version changes part of string to 'undefined' HOT 3
- Update Deprecated Node Modules HOT 5
- Help instalation HOT 25
- PHP Fatal error on fresh install (`WP_Rig\WP_Rig\JavaScript\Component`) HOT 1
- Why is it so hard (read impossible) to change the color of the mobile menu toggle? HOT 1
- Upgrade Babel and eslint
- I installed but it stays in scripts HOT 3
- watch process freezes after "Finished 'editorStyles'.... " HOT 2
- mobile menu clickable under text when hamburger menu is folded up HOT 4
- Seemingly incomplete collapsible sub menu items feature in mobile nav
- Use intersection observer to swap the submenu direction so items do not go offscreen
- Version not updating when running production bundle due to mismatch in constants.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wprig.