MDriven Turnkey theming
No edit summary
No edit summary
Line 1: Line 1:
SCSS or SASS as it sometimes pronounced is a text format that compiles into css.
[https://sass-lang.com/documentation/syntax SCSS] or SASS, as it sometimes is called, is a text format that compiles into css.


Using scss can greatly simplify the source code for styling a site since it introduces variables and other logic that is missing from standard css.
Using scss can greatly simplify the source code for styling a site since it introduces variables and other logic that is missing from standard css.


As you can imagine things like text font size may be needed in many places across the site and we usually want such a thing consistent - but if there is no variable to reuse we would be forced to have a copy of the desired value in many css rules. A Variable definition greatly simplifies this and allows us to change in only one place.
As you can imagine things like text font size may be needed in many places across the site and we usually want such a thing consistent - but if there is no variable to reuse we would be forced to have a copy of the desired value in many css rules. A Variable definition greatly simplifies this and allows us to maintain it in only one place.


This is the reason for us shifting to scss-format on the source code for styling a turnkey web app.
This is the reason for us shifting to scss-format on the source code for styling a turnkey web app based on [https://material.io/design/ material design styles].


This switch also benefits you when you want to give your turnkey site a personal touch.
This switch also benefits you when you want to give your turnkey site a personal touch.
Scss and css are web de facto standards - and you may use any tool that does the job. This article described one of many possible ways to tweak the styles of a turnkey site.


==== How does this differ from tkusercss? ====
==== How does this differ from tkusercss? ====
Line 15: Line 13:


==== Where to start ====
==== Where to start ====
Scss and css are web de facto standards - and you may use any tool that does the job. This article describes one of many possible ways to tweak the styles of a turnkey site.

Revision as of 22:07, 15 June 2019

SCSS or SASS, as it sometimes is called, is a text format that compiles into css.

Using scss can greatly simplify the source code for styling a site since it introduces variables and other logic that is missing from standard css.

As you can imagine things like text font size may be needed in many places across the site and we usually want such a thing consistent - but if there is no variable to reuse we would be forced to have a copy of the desired value in many css rules. A Variable definition greatly simplifies this and allows us to maintain it in only one place.

This is the reason for us shifting to scss-format on the source code for styling a turnkey web app based on material design styles.

This switch also benefits you when you want to give your turnkey site a personal touch.

How does this differ from tkusercss?

As we have described before you may add your own styles to Content/tkusercss.css - this article describes how you change the existing styles in a consistent scss supported way that build the very fabric of every aspect of the turnkey site.

Where to start

Scss and css are web de facto standards - and you may use any tool that does the job. This article describes one of many possible ways to tweak the styles of a turnkey site.

This page was edited 30 days ago on 03/26/2024. What links here