Create single file for theme related content
See original GitHub issueIs your feature request related to a problem? Please describe.
I would like to extract all colors, padding, margin, text size etc into single theme.js
. This will help customize the styling of the app really straight forward, and client can modify the theme to reflect their brand style.
Describe the solution you’d like
- Create
colors.js
to hold all colors used in app - Create
spacing.js
that will hold standard spacing used for padding and margin. - Create
typography.js
to hold standard Text styles that can be reuse in entire app - Merge all
color
,spacing
,typography
into singletheme.js
which will be used by all component
Additional context I have implemented in my magecart repo, you can see it for reference.
Can I do it?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to Create a Custom Single Attachments Template in ...
The easiest way to create a custom single attachments template is by using SeedProd. It's the best WordPress theme builder plugin and can...
Read more >Post Template Files | Theme Developer Handbook
There are many templates you can use to customize content structure based on the context within the site. The two most notable post...
Read more >How to create custom single-post templates in WordPress
Before creating a custom post template, I will create a child theme first. You can work in the main theme, but since you're...
Read more >How to Create a Custom WordPress Theme - Full Course
Learn how to create a custom WordPress theme. You will learn a process that you can use to convert any HTML/CSS template into...
Read more >How to Create a WordPress Single Post Template - Elementor
1. The first thing you need to do is to create a new file. You can do this by opening a text editor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey @alexakasanjeev, Wow! Amazing work! I did smoke test the app on iOS and it looks really great! I haven’t reviewed all code yet but generally looks good.
There is no ‘sans-serif’ font on iOS by default, so I pushed the fix for it.
You can find some default fonts per OS here
Also, I see a lot of warnings appear, so need to review it as well.
@alexakasanjeev not sure how those components appeared in the project, fill free to remove them if it is not used.