-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(migration): add initial migration docs for components
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# `carbon-components` | ||
|
||
**Note: everything in this file is a work-in-progress and will be changed.** | ||
|
||
## Overview | ||
|
||
- Carbon now uses [Dart Sass](https://npmjs.com/package/sass) along with Sass | ||
Modules | ||
- File paths have been renamed to provide shorter paths and more intuitive ways | ||
to get access to common variables, mixins, functions, and more. | ||
- Prefixed variables, functions, and mixins have been renamed as part of our | ||
migration to Sass Modules | ||
|
||
## Files | ||
|
||
| Filename | v11 | | ||
| --------------------------------------------------------------- | --------------------------------------- | | ||
| `scss/globals` | | | ||
| `scss/globals/fonts/*` | Removed | | ||
| `scss/globals/grid/_grid.scss` | `scss/_grid.scss` | | ||
| `scss/globals/scss` | `scss` | | ||
| `scss/globals/scss/vendor/*` | Removed | | ||
| `scss/globals/scss/_colors.scss` | `scss/_colors.scss` | | ||
| `scss/globals/scss/_component-tokens.scss` | | | ||
| `scss/globals/scss/_css--body.scss` | | | ||
| `scss/globals/scss/_css--font-face.scss` | | | ||
| `scss/globals/scss/_css--helpers.scss` | | | ||
| `scss/globals/scss/_css--reset.scss` | | | ||
| `scss/globals/scss/_deprecate.scss` | | | ||
| `scss/globals/scss/_feature-flags.scss` | | | ||
| `scss/globals/scss/_functions.scss` | | | ||
| `scss/globals/scss/_helper-classes.scss` | | | ||
| `scss/globals/scss/_helper-mixins.scss` | | | ||
| `scss/globals/scss/_import-once.scss` | | | ||
| `scss/globals/scss/_keyframes.scss` | | | ||
| `scss/globals/scss/_layer.scss` | | | ||
| `scss/globals/scss/_layout.scss` | | | ||
| `scss/globals/scss/_mixins.scss` | | | ||
| [`scss/globals/scss/_motion.scss`](#scssglobalsscss_motionscss) | `scss/_motion.scss` | | ||
| `scss/globals/scss/_spacing.scss` | | | ||
| `scss/globals/scss/_theme-tokens.scss` | | | ||
| `scss/globals/scss/_theme.scss` | | | ||
| `scss/globals/scss/_tooltip.scss` | | | ||
| `scss/globals/scss/_typography.scss` | | | ||
| `scss/globals/scss/_vars.scss` | | | ||
| `scss/globals/scss/styles.scss` | `/index.scss`, require package directly | | ||
| `scss/components` | | | ||
|
||
### `scss/globals/scss/_motion.scss` | ||
|
||
| v10 | v11 | | ||
| :------------------------- | :-- | | ||
| `$carbon--ease-in` | | | ||
| `$carbon--ease-out` | | | ||
| `$carbon--standard-easing` | | | ||
| `$transition--base` | | | ||
| `$transition--expansion` | | | ||
| `$duration--fast-01` | | | ||
| `$duration--fast-02` | | | ||
| `$duration--moderate-01` | | | ||
| `$duration--moderate-02` | | | ||
| `$duration--slow-01` | | | ||
| `$duration--slow-02` | | | ||
| `@function motion` | | | ||
| `@mixin motion` | | |