loomcss 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.nvmrc +1 -0
  4. data/.stylelintrc +6 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +21 -0
  7. data/README.md +161 -0
  8. data/Rakefile +2 -0
  9. data/assets/loom/10-global-settings/_box-sizing.scss +5 -0
  10. data/assets/loom/10-global-settings/_breakpoints.scss +22 -0
  11. data/assets/loom/10-global-settings/_color.scss +79 -0
  12. data/assets/loom/10-global-settings/_icons.scss +5 -0
  13. data/assets/loom/10-global-settings/_misc.scss +89 -0
  14. data/assets/loom/10-global-settings/_spacing.scss +20 -0
  15. data/assets/loom/10-global-settings/_typography.scss +201 -0
  16. data/assets/loom/20-tools/_color.scss +22 -0
  17. data/assets/loom/20-tools/_grid-columns.scss +23 -0
  18. data/assets/loom/20-tools/_icons.scss +16 -0
  19. data/assets/loom/20-tools/_misc.scss +12 -0
  20. data/assets/loom/20-tools/_mq.scss +126 -0
  21. data/assets/loom/20-tools/_spacing.scss +14 -0
  22. data/assets/loom/20-tools/_transition.scss +10 -0
  23. data/assets/loom/20-tools/_type-checking.scss +52 -0
  24. data/assets/loom/20-tools/_typography.scss +130 -0
  25. data/assets/loom/20-tools/_z-index.scss +16 -0
  26. data/assets/loom/30-generic/_box-sizing.scss +9 -0
  27. data/assets/loom/30-generic/_normalize.scss +461 -0
  28. data/assets/loom/30-generic/_reset.scss +48 -0
  29. data/assets/loom/40-base-elements/_form-items.scss +50 -0
  30. data/assets/loom/40-base-elements/_images.scss +5 -0
  31. data/assets/loom/40-base-elements/_typography.scss +138 -0
  32. data/assets/loom/50-layout/_grid.scss +37 -0
  33. data/assets/loom/60-objects/_absolute-center.scss +18 -0
  34. data/assets/loom/60-objects/_absolute-cover.scss +19 -0
  35. data/assets/loom/60-objects/_button.scss +93 -0
  36. data/assets/loom/60-objects/_clearfix.scss +19 -0
  37. data/assets/loom/60-objects/_container.scss +34 -0
  38. data/assets/loom/60-objects/_fixed-ratio.scss +42 -0
  39. data/assets/loom/60-objects/_headings.scss +28 -0
  40. data/assets/loom/60-objects/_hide-visually.scss +23 -0
  41. data/assets/loom/60-objects/_icon.scss +30 -0
  42. data/assets/loom/60-objects/_list-inline.scss +37 -0
  43. data/assets/loom/60-objects/_list-reset.scss +25 -0
  44. data/assets/loom/60-objects/_media.scss +35 -0
  45. data/assets/loom/60-objects/_vertical-center.scss +18 -0
  46. data/assets/loom/70-ui-components/_example.scss +22 -0
  47. data/assets/loom/80-utilities/_background-color.scss +13 -0
  48. data/assets/loom/80-utilities/_border.scss +10 -0
  49. data/assets/loom/80-utilities/_color.scss +13 -0
  50. data/assets/loom/80-utilities/_display.scss +31 -0
  51. data/assets/loom/80-utilities/_font-family.scss +20 -0
  52. data/assets/loom/80-utilities/_font-size.scss +24 -0
  53. data/assets/loom/80-utilities/_font-style.scss +15 -0
  54. data/assets/loom/80-utilities/_font-weight.scss +15 -0
  55. data/assets/loom/80-utilities/_line-height.scss +0 -0
  56. data/assets/loom/80-utilities/_margin.scss +33 -0
  57. data/assets/loom/80-utilities/_padding.scss +32 -0
  58. data/assets/loom/80-utilities/_position.scss +15 -0
  59. data/assets/loom/80-utilities/_text-align.scss +19 -0
  60. data/assets/loom/80-utilities/_text-transform.scss +19 -0
  61. data/assets/loom/80-utilities/_vertical-align.scss +26 -0
  62. data/assets/loom/80-utilities/_white-space.scss +27 -0
  63. data/assets/loom/80-utilities/_width.scss +11 -0
  64. data/assets/loom/90-trumps/.keepfile +0 -0
  65. data/assets/loom/_10-global-settings.scss +7 -0
  66. data/assets/loom/_20-tools.scss +10 -0
  67. data/assets/loom/_30-generic.scss +2 -0
  68. data/assets/loom/_40-base-elements.scss +3 -0
  69. data/assets/loom/_50-layout.scss +1 -0
  70. data/assets/loom/_60-objects.scss +13 -0
  71. data/assets/loom/_70-ui-components.scss +0 -0
  72. data/assets/loom/_80-utilities.scss +17 -0
  73. data/assets/loom/_90-trumps.scss +0 -0
  74. data/assets/main-shorthand.scss +44 -0
  75. data/assets/main.scss +108 -0
  76. data/bin/console +14 -0
  77. data/bin/setup +8 -0
  78. data/gulpfile.js +24 -0
  79. data/index.html +97 -0
  80. data/lib/loomcss.rb +2 -0
  81. data/lib/loomcss/engine.rb +9 -0
  82. data/lib/loomcss/version.rb +3 -0
  83. data/loomcss.gemspec +32 -0
  84. data/main.css +1298 -0
  85. data/package.json +36 -0
  86. data/public/docs/assets/images/favicon.png +0 -0
  87. data/public/docs/assets/images/logo_full_compact.svg +1 -0
  88. data/public/docs/assets/images/logo_full_inline.svg +1 -0
  89. data/public/docs/assets/images/logo_light_compact.svg +1 -0
  90. data/public/docs/assets/images/logo_light_inline.svg +1 -0
  91. data/public/docs/assets/js/main.js +56 -0
  92. data/public/docs/assets/js/main.min.js +1 -0
  93. data/public/docs/assets/js/search.js +146 -0
  94. data/public/docs/assets/js/sidebar.js +163 -0
  95. data/public/docs/assets/js/vendor/fuse.min.js +20 -0
  96. data/public/docs/assets/js/vendor/jquery.min.js +4 -0
  97. data/public/docs/assets/js/vendor/prism.min.js +9 -0
  98. data/public/docs/index.html +314 -0
  99. metadata +172 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9bafb0241e1e64d7707e380e064e7f1f17f90826
4
+ data.tar.gz: be482943e6db2b6ce17a6408a561467d5b98de6d
5
+ SHA512:
6
+ metadata.gz: 9ec5ec232699d3373c8cb9e0e0eebc9d9536567979fd74657122d8221f9caf964d086ad245a9239d4269086e74424844c9e18866a14ce37c964ea262703c3941
7
+ data.tar.gz: d9026998087e2ae18be24ef263873d746584058229ff2f982ed57b6a030ee33c9cd42fb9113a66d69523f0b5ad0e5780dfcc983d65f9bcc0907eca439a4c8f0f
@@ -0,0 +1,16 @@
1
+ .sass-cache/
2
+ *.css.map
3
+
4
+ node_modules
5
+
6
+ css/
7
+
8
+ /.bundle/
9
+ /.yardoc
10
+ /Gemfile.lock
11
+ /_yardoc/
12
+ /coverage/
13
+ /doc/
14
+ /pkg/
15
+ /spec/reports/
16
+ /tmp/
data/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v6.6.0
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "stylelint-config-standard",
3
+ "rules": {
4
+ "declaration-block-properties-order": "alphabetical"
5
+ }
6
+ }
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in loomcss.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Charlie Owen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,161 @@
1
+ # Loom
2
+
3
+ Loom lets you easily build your own design systems. Organised around [ITCSS](https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture/) it gives you a quick way of scaffolding sites, and then a more nuanced way of developing your own components.
4
+
5
+ Highly modular, Loom lets you easily extend it with your own modules and classes.
6
+
7
+ # Example
8
+
9
+ ```scss
10
+ .c-fancy-button {
11
+ @include button(get-color(white), get-color(primary-brand));
12
+ @include font-size(large);
13
+ padding: get-spacing(xsmall) get-spacing(small);
14
+ }
15
+ ```
16
+
17
+ # Manifesto
18
+
19
+ Loom's manifesto and opinions:
20
+
21
+ - Loom tries to make things *easier* for a developer.
22
+ - Loom doesn't come with a "theme" or a prebuilt pattern library. Loom helps you to weave _your own_ pattern libraries.
23
+ - Loom is a tool and isn't designed to "drop in and go". It is something to help professional designer/developers in their everyday tasks.
24
+ - Loom is very opinionated about:
25
+ - Being an integral part of a design system. Therefore in Loom all colour, spacing and font values originate from centralised settings and are accessed only via getter functions.
26
+ - Keeping styling separate from structure. Loom only provides minimal styling to HTML elements and leaves everything else up to classes.
27
+ - Keeping specificity low. Loom is structured around ITCSS, so a selectors specificity should come from its source order, and nothing else. That also means:
28
+ - No `@extend`s. These so, so, so easily mess up the source order of a project. Because ITCSS, the core of this, is source order dependent, it's best to avoid any use of `@extend`.
29
+ - No nesting. Loom really doesn't like nesting. Nesting makes for horrible specificity problems.
30
+ - No IDs. IDs make for even more horrible specificity problems. Just... no.
31
+ - Being modular. If you don't like the way something works in Loom, you can remove it or use your own module instead.
32
+ - Loom doesn't care about:
33
+ - How you name your CSS selectors. Yes, it's opinionated about Sass structure, but kinda indifferent to your CSS output.
34
+ - Wether you want to use atomic or utility classes.
35
+ - Vendor prefixes - let's leave that up to Autoprefixer.
36
+
37
+ # Installation
38
+
39
+ Eventually this will be an npm module, a bower module and gem. For now it's installable via npm:
40
+
41
+ ```bash
42
+ $ npm install loomcss --save-dev
43
+ ```
44
+ Or go old-school and copy/paste the contents of the `assets` folder into your project. Hey, whatever works, right?
45
+
46
+ # Usage
47
+
48
+ Once installed, you will need to add the installation path to your own build system. This will probably be something like `node_modules/loomcss/assets`.
49
+
50
+ Once you have made that folder available to your build you can access the Loom layers using:
51
+
52
+ ```scss
53
+ @import 'loom/10-global-settings/misc';
54
+ // etc
55
+ ```
56
+ Please DON'T just link to `main.scss`! This will prevent you getting access to the interweaved layers of the ITCSS stack (it's there as an example only). Instead, copy [the list of imports](https://github.com/sonniesedge/loom/blob/master/assets/main.scss) from `main.scss` into your main project file. Yes, it feels unusual, but you'll gain a lot of power by doing so.
57
+
58
+ This library is a basis for your own design system and won't give you much visually out of the box!
59
+
60
+ # Organisation layers
61
+
62
+ The Sass in the project is arranged in layers, with specificity and scope increasing as you decend from layer 10 to 100. Layers at the top (10) are extremely broad in scope and of low specificity, and those at the bottom (100) being extremely specific and high specificity.
63
+
64
+ You can add your own layers, but the default ones are as follows:
65
+
66
+ ## 10 - Global settings
67
+ Sass global variables. Should only contain those things used by multiple layers and modules.
68
+
69
+ ## 20 - Tools
70
+ Mixins and functions to support the lower layers.
71
+
72
+ ## 30 - Generic
73
+ Generic CSS, imported Normalize and Reset CSS. Things that aren't really visual, but have a lot of impact across the project.
74
+
75
+ ## 40 - Base elements
76
+ Specific simple styling for base elements. Loom gives some extremely simple styling to those elements that have a standard visual "state" and are not normally styled with the aid of classes (`<p>`, `<ul>`, `<dl>`, etc).
77
+
78
+ Headings (`<h1>` to `<h6>`) are the exception to this, as they are often used to provide semantic meaning, and so have their styling removed by default.
79
+
80
+ In general styling for must be added via a module from the Objects, UI Components or Utilities layers.
81
+
82
+ ## 50 - Layouts
83
+ Layer modules that provide layout-specific styling. They are used on *wrapper* containers that themselves contain Objects or UI Components.
84
+
85
+ NOTE: Complications will likely occur if a Layout module and a lower layer module are used on the same HTML element!
86
+
87
+ ## 60 - Objects
88
+ Complex chunks of CSS that are used as the base for UI Component modules. Each object is defined as a mixin and expressed as a class, and each class can be used on its own.
89
+
90
+ The classes can be used for quick scaffolding, anchoring their classnames directly to CSS. (However, Loom opines that they should eventually be converted into UI Components, which directly consume the Object mixins. But Loom has some funny ideas and talks about The War a lot).
91
+
92
+ Some things might stay as class-based objects, and be used as a base for skinning, in true OOCSS style. For example, `.button` can serve as the OO base for `.c-button` and `.c-button--primary`.
93
+
94
+ ```html
95
+ <button class="o-button c-button c-button--primary">Continue</button>
96
+ ```
97
+
98
+ Or `.c-button` might consume `@include o-button` directly:
99
+
100
+ ```scss
101
+ .c-button {
102
+ @include button();
103
+ }
104
+ ```
105
+
106
+ ```html
107
+ <button class="c-button c-button--primary">Continue</button>
108
+ ```
109
+
110
+ Your choice!
111
+
112
+ ## 70 - UI components
113
+ These are highly visual components built from Object mixins, Loom settings and custom CSS.
114
+
115
+ This layer will probably form the core of your own projects! :D
116
+
117
+ ## 80 - Utilities
118
+ Utility modules provide classes that do one thing. While most visual styling should come from the component layer, there are always occasions where a separate class is needed to quickly nudge a component into shape.
119
+
120
+ Loom thinks that these should be used with caution, and that excessive use of these implies that a component or setting is lacking.
121
+
122
+ ## 90 - Trumps
123
+ "Trumps" as in "a trump card". Extremely high specificity selectors live here!
124
+
125
+ Anything in this layer is used with some embarrassment. An example use might be to override CSS coming from external sources.
126
+
127
+ The only layer that `!important` is permitted in a module.
128
+
129
+ # Selector notation
130
+ By default this project uses BEM notation for the optional CSS selectors.
131
+
132
+ # Fonts
133
+ You can specify fonts via the `$LOOM-fonts`. By default there is a `primary` and a `secondary` font. The default usage is secondary for headings and primary for everything else.
134
+
135
+ Each of these has a `base` and a `webfont` variant. These are for use with a font-observer system, that will add the class specified in `$LOOM-fonts-loaded` to the HTML element, allowing webfonts to be used without FOIC occurring.
136
+
137
+ # Naming conventions
138
+ The naming convention for internal variables and classes is as follows:
139
+
140
+ ```
141
+ object-property-variant-state
142
+ ```
143
+
144
+ - `object` is the thing being operated on.
145
+ - `property` is the aspect of object that is being altered.
146
+ - `variant` is a version of the object.
147
+ - `state` is a state change, such as being active, or a breakpoint.
148
+
149
+ So examples of this might be:
150
+
151
+ - `.margin-left-small {}` Object = margin; property = left; variant = small;
152
+ - `$padding-top-large` Object = padding; property = top; variant = large;
153
+ - `.button-background-primary {}` Object = button; property = background; variant = primary;
154
+ - `$button-background-color-hover` Object = button; property = background-color; state = hover; (note that background-color is one word. Hyphens are used to match the CSS property naming convention).
155
+
156
+ # Developing
157
+ Always looking for fellow conspirators.
158
+
159
+ # Reading
160
+ - http://www.hongkiat.com/blog/basics-of-object-oriented-css/
161
+ - https://www.sitepoint.com/atomic-oobemitscss/
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,5 @@
1
+ /// Global box sizing setting.
2
+ ///
3
+ /// @group 10-global-settings
4
+ /// @type string
5
+ $LOOM-box-sizing: border-box !default;
@@ -0,0 +1,22 @@
1
+ /// Definition map of breakpoint sizes.
2
+ ///
3
+ /// Name your breakpoints in a way that creates a ubiquitous language
4
+ /// across team members. It will improve communication between
5
+ /// stakeholders, designers, developers, and testers.
6
+ ///
7
+ /// @group 10-global-settings
8
+ /// @type map
9
+ $LOOM-mq-breakpoints: (
10
+ small: 320px,
11
+ medium: 740px,
12
+ large: 980px,
13
+ xlarge: 1300px
14
+ ) !default;
15
+
16
+ /// Customize the media type (e.g. `@media screen` or `@media print`)
17
+ /// By default sass-mq uses an "all" media type (`@media all and …`)
18
+ ///
19
+ /// @group 10-global-settings
20
+ /// @type String
21
+ /// @link https://github.com/sass-mq/sass-mq#changing-media-type Full documentation and examples
22
+ $LOOM-mq-media-type: all !default;
@@ -0,0 +1,79 @@
1
+ /// The central, default, global color list.
2
+ ///
3
+ /// Retrieve theme colours defined here with get-color(name).
4
+ ///
5
+ /// @group 10-global-settings
6
+ /// @type map
7
+ /// @example scss - Using a colour map
8
+ /// $LOOM-colors-theme: (
9
+ /// 'brand-primary': #ed3d68,
10
+ /// 'brand-secondary': #30bbba,
11
+ /// 'white': #fff,
12
+ /// 'black': #000,
13
+ /// 'meta': #e4e4e4
14
+ /// )
15
+ /// @example scss - Using a colour map with predfined variables
16
+ /// $color-pink: #ed3d68;
17
+ /// $color-green: #30bbba;
18
+ /// $color-light-gray: #e4e4e4
19
+ ///
20
+ /// $LOOM-colors-theme: (
21
+ /// 'brand-primary': $color-pink,
22
+ /// 'brand-secondary': $color-green,
23
+ /// 'white': #fff,
24
+ /// 'black': #000,
25
+ /// 'meta': $color-light-gray
26
+ /// )
27
+ $LOOM-colors-theme: (
28
+ 'black': #000,
29
+ 'white': #fff
30
+ ) !default;
31
+
32
+ /// Use your own colour map as the default global color list for use by the get-color() function.
33
+ ///
34
+ /// @group 10-global-settings
35
+ $LOOM-colors-list: $LOOM-colors-theme !default;
36
+
37
+ // LOOM COLORS
38
+ //
39
+ // Okay, so you should always use get-color() when building your own system. However, Loom needs some "safe" colour variables to work with, as the colours defined in $LOOM-colors-list could be overridden by the end-user. These colours are used as to provide "default" defaults for several objects and mixins.
40
+
41
+ /// Default color - black
42
+ ///
43
+ /// Provide a default colour for some Loom objects.
44
+ ///
45
+ /// @access private
46
+ /// @group 10-global-settings
47
+ $LOOM-color-black: #000 !default;
48
+
49
+ /// Default color - white
50
+ ///
51
+ /// Provide a default colour for some Loom objects.
52
+ ///
53
+ /// @access private
54
+ /// @group 10-global-settings
55
+ $LOOM-color-white: #fff !default;
56
+
57
+ /// Default color - medium gray
58
+ ///
59
+ /// Provide a default colour for some Loom objects.
60
+ ///
61
+ /// @access private
62
+ /// @group 10-global-settings
63
+ $LOOM-color-medium-gray: #999595 !default;
64
+
65
+ /// Default color - dark gray
66
+ ///
67
+ /// Provide a default colour for some Loom objects.
68
+ ///
69
+ /// @access private
70
+ /// @group 10-global-settings
71
+ $LOOM-color-dark-gray: #444 !default;
72
+
73
+ /// Default color - light gray
74
+ ///
75
+ /// Provide a default colour for some Loom objects.
76
+ ///
77
+ /// @access private
78
+ /// @group 10-global-settings
79
+ $LOOM-color-light-gray: #e5e5e5 !default;
@@ -0,0 +1,5 @@
1
+ $LOOM-icon-sizes: (
2
+ 'small': 0.5em,
3
+ 'default': 1em,
4
+ 'large': 2em
5
+ ) !default;
@@ -0,0 +1,89 @@
1
+ /// Will object mixins have their own classes generated?
2
+ ///
3
+ /// @group 10-global-settings
4
+ /// @type boolean
5
+ $LOOM-use-object-classes: true !default;
6
+
7
+ /// Will utility modules have their own classes generated?
8
+ ///
9
+ /// @group 10-global-settings
10
+ /// @type boolean
11
+ $LOOM-use-utility-classes: true !default;
12
+
13
+ /// The default border-radius for various objects.
14
+ ///
15
+ /// @group 10-global-settings
16
+ /// @type number
17
+ $LOOM-border-radius: 5px !default;
18
+
19
+ /// The default border-radius for circular objects.
20
+ ///
21
+ /// @group 10-global-settings
22
+ /// @type number
23
+ $LOOM-border-radius-circle: 50% !default;
24
+
25
+ /// The default z-index layers used by the get-z() function.
26
+ ///
27
+ /// @group 10-global-settings
28
+ /// @see {function} get-z
29
+ /// @type map
30
+ $LOOM-z-layers: (
31
+ "top": 2,
32
+ "default": 1,
33
+ "below": -1,
34
+ ) !default;
35
+
36
+ /// The default list of breakpoints that is used to generate display-none classes.
37
+ ///
38
+ /// @group 10-global-settings
39
+ /// @type list
40
+ $LOOM-display-none-breakpoints: (
41
+ small,
42
+ large
43
+ ) !default;
44
+
45
+ /// The default time that all animations takes to complete.
46
+ ///
47
+ /// @group 10-global-settings
48
+ /// @type time
49
+ $LOOM-transition-duration: 0.2s !default;
50
+
51
+ /// The default timing/easing function that all animations will use.
52
+ ///
53
+ /// @group 10-global-settings
54
+ /// @type string
55
+ $LOOM-transition-timing-function: ease-in-out !default;
56
+
57
+ /// Default numbe of columns inside a grid container.
58
+ /// @group 10-global-settings
59
+ $LOOM-grid-columns: (12) !default;
60
+
61
+ /// Default numbe of columns inside a grid container when combined with breakpoints.
62
+ /// @group 10-global-settings
63
+ $LOOM-grid-columns-responsive: (12) !default;
64
+
65
+ /// Default gutter size for grid elements.
66
+ /// @group 10-global-settings
67
+ $LOOM-grid-gutter: xsmall !default; // NOTE: will be consumed by get-spacing()
68
+
69
+ /// Breakpoints defined here will be used to generate breakpoints in the grid system.
70
+ ///
71
+ /// @group 10-global-settings
72
+ $LOOM-grid-breakpoints: (
73
+ 'small',
74
+ 'medium',
75
+ 'large',
76
+ 'xlarge'
77
+ ) !default;
78
+
79
+ /// Default border width.
80
+ /// @group 10-global-settings
81
+ $LOOM-border-width: 1px !default;
82
+
83
+ /// Default border style
84
+ /// @group 10-global-settings
85
+ $LOOM-border-style: solid !default;
86
+
87
+ /// Default width of single-column content
88
+ /// @group 10-global-settings
89
+ $LOOM-single-column-width: 55rem !default;
@@ -0,0 +1,20 @@
1
+ /// Global list of sizing units
2
+ ///
3
+ /// @group 10-global-settings
4
+ $LOOM-spacing-list: (
5
+ 'xsmall': 0.5rem,
6
+ 'small': 1rem,
7
+ 'default': 2rem,
8
+ 'large': 3rem,
9
+ 'xlarge': 4rem
10
+ ) !default;
11
+
12
+ /// Change this to your own list if you wish. This is used by many functions as a default.
13
+ /// @group 10-global-settings
14
+ $LOOM-spacing: $LOOM-spacing-list !default;
15
+
16
+ /// Default vertical spacing value.
17
+ ///
18
+ /// Intended to be overridden by user choices.
19
+ /// @group 10-global-settings
20
+ $LOOM-spacing-vertical: 1rem !default;