question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create single file for theme related content

See original GitHub issue

Is 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

  1. Create colors.js to hold all colors used in app
  2. Create spacing.js that will hold standard spacing used for padding and margin.
  3. Create typography.js to hold standard Text styles that can be reuse in entire app
  4. Merge all color, spacing, typography into single theme.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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dimaportenkocommented, Oct 7, 2019

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.

1reaction
dimaportenkocommented, Oct 4, 2019

@alexakasanjeev not sure how those components appeared in the project, fill free to remove them if it is not used.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found