If you're using the Components, make sure to include the following script in the <head> of your document:
The script is used in CSS to target that JavaScript is enabled and apply additional style accordingly. If you don't include the script, part of the style of the components won't be visible.
Gulp
CodyFrame includes a Gulp configuration file. To start a project that runs on Gulp, once you have downloaded the source files, navigate to the framework folder, and run the following commands in your command line:
The first command will install the modules the framework requires for compiling SCSS into CSS; the second will launch your project on a development server.
⚠️ Note: if you receive error messages while trying to run the npm install command, you may need to download and install Git first.
If you need to support browsers where CSS Custom Properties have not been implemented (e.g. IE11), use the npm run gulp watch-ie command instead.
When using this command, the gulp configuration file is set to compile the SCSS into two separate CSS files: style.css includes the CSS variables; in the style-fallback.css file, the CSS variables are replaced by their fallbacks (generated by the PostCSS plugin). Make sure to uncomment the following script in the of the index.html file: it is used to deliver only one file, according to whether the browser supports CSS variables or not.
The Global Editors are visual tools that allow you to set the style of typography elements, color themes, spacing rules, buttons, and forms directly in the browser. They generate SCSS code that is compatible with CodyFrame.