Comments (9)
Not yet, but my advice is to put all your styles in separate files like this:
At the end of concise.scss
...
// Custom
@import "custom";
custom.scss
// All my custom syles in this file
or
// All my custom styles in different separated files
@import "custom/myStylesA";
@import "custom/myStylesB";
@import "custom/myStylesC";
To update just replace all the files except custom.scss or/and all the files in a custom
directory.
Currently we are working in the version 3 of Concise and will use this approach.
from concise.css.
But if I want to change a Concise Sass variable I need to do that before then end of the concise.scss
file.
from concise.css.
If you want to change an existing variable you can do it in the same place, for example, if you want to change something in _variables.scss
you just rewrite the value. The problem with this is that you'll need to remember the files changed before to update to make a backup.
If you want to add a new variable my advice is to do it into your custom styles (custom.scss or something similar). So you can update without any problem.
The reason to add a custom.scss
file at the end is to inherit all the previous styles. You can do it in another place but maybe you will have some problems, remember the way CSS works (in cascade)
Another advice for this is update manually only what you actually need. Usually there is no need to update the whole thing each time, if you website works you don't need to worry about it. When a new version is released you can check the changelog and see if there is anything you can benefit from the update.
from concise.css.
That's not a good system. I think there needs to be a structure in which a Sass developer can work to make design customizations that will not be overwritten by a framework upgrade.
Per haps that can be a focus for a future version?
from concise.css.
I completely agree with that, and yes, that's one of the problems we plan to solve with version 3 of the framework. But I must say that is really hard to come up with a perfect solution because the way preprocessors work today, it's really hard to make a framework perfectly upgradable and with zero redundancies at the same time, but we are working in getting the best solution possible.
from concise.css.
A way might be for the developer to have the main .scss file call parts of Concise something like this:
@import the concise mix-ins
@import the concise variables
override variables as needed
@import the concise main scss
override individual styles
Could a system like that work?
from concise.css.
Yes, that could work perfectly except for the styles; You will end up with redundancies since the compiler won't really override styles like it does with variables, but this might not be a serious problem depending of the size of your project. Sometimes 1kb extra isn't a big deal.
from concise.css.
Yes, there will be a probably necessary redundancy between Concise's styles and whatever styles are overridden. Not too bad, unless someone tries to override nearly all of Concise!
from concise.css.
Exactly and the core of the next version will be pretty small so I think this is the way to go.
This is almost the same approach we are using with the next version, but we had not thought about the variables so thanks for the idea!
from concise.css.
Related Issues (20)
- Simplify the font families HOT 1
- Have you successfully combined any baseline grid tools with Concise? HOT 9
- How can I remove these vertical scroll bars HOT 3
- grid="center" tag on small screens HOT 3
- Is v3.4 documentation available? HOT 2
- Overflow on `[container]` breaks `position: sticky` HOT 3
- Concise isn't compatible with postcss-input-range 3.0.1 HOT 2
- Rewrite the base styles
- Delete globals and everything that isn't CSS
- Move base styles to concise-core
- Any plans on form styling (input, select, checkbox, ...) HOT 3
- flex basis and IE11 HOT 1
- Custom unit lh invalid property value with node-sass HOT 1
- No exhaustive documentation
- How to use with rollup.js?
- How do I get Concise installed in a Rails 6 app?
- This is brilliant stuff. HOT 1
- What are the goals for this project?
- CDN is down HOT 3
- Codepens fail in doc HOT 2
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 concise.css.