You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+20-33
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,14 @@ Files included:
8
8
1.**base/*:** essential CSS rules and utility classes (we suggest you don't modify these files).
9
9
2.**custom-style/*:** SCSS templates you can use to create your bespoke style.
10
10
3.**style.scss:** used to import the _base.scss and _custom-style.scss files.
11
-
4.**util.js:** utility functions used in the [CodyHouse Components](https://codyhouse.co/ds/components). Make sure to import this file before the script file of the components.
11
+
4.**util.js:** utility functions used in the [CodyHouse components](https://codyhouse.co/ds/components). Make sure to import this file before the script file of the components.
12
12
13
13
Selling points:
14
14
15
-
- 🙌 no need to override existing CSS rules
16
-
- 📱 mobile-first
17
-
- 🎨 create unique designs with total control
18
-
- 📖 easy to learn
19
-
- 💼 a library of [accessible components](https://codyhouse.co/ds/components)
15
+
- 🙌 No need to override existing CSS rules
16
+
- 🎨 CSS custom properties
17
+
- 📖 Easy to learn
18
+
- 🏗 A library of [accessible components](https://codyhouse.co/ds/components)
20
19
21
20
```text
22
21
codyhouse-framework/
@@ -44,63 +43,51 @@ codyhouse-framework/
44
43
```
45
44
46
45
## Progressive enhancement
47
-
If you're using the Components, make sure to include the following script in the `<head>` of your document:
46
+
If you're using our [components](https://codyhouse.co/ds/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.
52
+
The script is used in CSS to check if JavaScript is enabled and apply additional style accordingly.
54
53
55
54
## Gulp
56
-
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:
55
+
CodyFrame includes a Gulp configuration file. To start a project that runs on Gulp, navigate to the framework folder, and run the following two commands:
56
+
57
+
1) Install the node modules
57
58
58
59
```
59
60
npm install
60
-
npm run gulp watch
61
61
```
62
62
63
-
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.
64
-
65
-
⚠️ **Note:** if you receive error messages while trying to run the `npm install` command, you may need to download and install [Git](https://git-scm.com) first.
66
-
67
-
**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.
68
-
69
-
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).
70
-
Make sure to uncomment the following script in the <head> of the index.html file: it is used to deliver only one file, according to whether the browser supports CSS variables or not.
📝 [How to use the Framework with Webpack](https://codyhouse.co/ds/docs/framework#webpack)
81
-
82
-
## Component Library
69
+
⚠️ **Note:** make sure you have [Npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), [Node](https://nodejs.org/en/download/), and [Git](https://git-scm.com/) installed.
83
70
84
-
CodyHouse's components are accessible, progressively enhanced, HTML, CSS, JS components that work seamlessly with the framework.
71
+
📝 [How to use CodyFrame with Webpack](https://codyhouse.co/ds/docs/framework#webpack)
85
72
86
-
You can use the Gulp configuration file to auto-import the .SCSS of the components.
73
+
## Component library
87
74
88
-
[How to import the CSS and JS of the CodyHouse's Components](https://codyhouse.co/ds/docs/framework#import-css-components)
75
+
CodyHouse's components are accessible, progressively enhanced, HTML, CSS, JS components that work seamlessly with CodyFrame.
89
76
90
-
[Explore the Components](https://codyhouse.co/ds/components)
77
+
[Explore the components](https://codyhouse.co/ds/components)
91
78
92
79
## Global Editors
93
80
94
81
The Global Editors are visual tools that you can use to create the style of typography elements, color palettes, spacing rules, buttons, and forms. They generate SCSS code compatible with CodyFrame.
Copy file name to clipboardexpand all lines: main/assets/css/base/_breakpoints.scss
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
//how to edit the breakpoints -> copy the $breakpoints SASS map (remove the !default flag) and import it before 'base' and 'custom-style' in the _style.scss file
1
+
// to edit the breakpoints, check the style.scss file
0 commit comments