Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Remove _index.scss requirement as we plan to use this file for future…
Browse files Browse the repository at this point in the history
… sass exploration
  • Loading branch information
JakeChampion committed Apr 9, 2021
1 parent ee97744 commit aae52da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _specification-v1/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ If a component contains SCSS files other than the root `main.scss` file:
- All import statements **must** be imported before any other Sass.
- All import statements **should** be in the components’s `main.scss` file.
- Sass variables, mixins, and functions **should** be in their own files.
- `_index.scss` **must** exist and only import the `main.scss` file.

## Sass Variables

Expand All @@ -122,7 +121,7 @@ Silent mode means a component's Sass will compile to an empty string, but provid

Components that make use of styles defined in other components which support silent mode **must** use those styles silently, e.g. for a component `o-foo` which depends on `o-bar`:
```
@import '@financial-times/o-bar';
@import '@financial-times/o-bar/main';
@mixin oFoo {
.o-foo {
Expand Down

0 comments on commit aae52da

Please sign in to comment.