@moda/tokens 5.6.0 → 5.7.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.7.0](https://github.com/ModaOperandi/tokens/compare/v5.6.0...v5.7.0) (2023-01-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * move from node-sass to sass ([#761](https://github.com/ModaOperandi/tokens/issues/761)) ([c2c5258](https://github.com/ModaOperandi/tokens/commit/c2c525821a2e26b23941f19db703e95a3dad35b9))
12
+
6
13
  # [5.6.0](https://github.com/ModaOperandi/tokens/compare/v5.5.4...v5.6.0) (2022-10-14)
7
14
 
8
15
 
package/dist/helpers.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { colors } from './colors';
2
2
  import { typography } from './typography';
3
- export declare type Font = keyof typeof typography.fonts;
4
- export declare type TextTreatment = keyof typeof typography['text-treatments'];
5
- export declare type Color = keyof typeof colors.all;
3
+ export type Font = keyof typeof typography.fonts;
4
+ export type TextTreatment = keyof typeof typography['text-treatments'];
5
+ export type Color = keyof typeof colors.all;
6
6
  export declare const text: (name: TextTreatment, font?: "code" | "serif" | "sans") => {
7
7
  'font-family': string;
8
8
  'line-height': string;
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  /// Returns the named value of a map. Throws an error if it does not exist.
2
4
  ///
3
5
  /// @param {map} $map
@@ -38,5 +40,5 @@
38
40
  }
39
41
 
40
42
  @function __strip-units__($value) {
41
- @return $value / ($value * 0 + 1);
43
+ @return math.div($value, ($value * 0 + 1));
42
44
  }
@@ -1,7 +1,8 @@
1
+ @use 'sass:math';
1
2
  @import "../utilities";
2
3
 
3
4
  $root-font-size: 16px;
4
- $root-one-px: 1 / __strip-units__($root-font-size);
5
+ $root-one-px: math.div(1, __strip-units__($root-font-size));
5
6
 
6
7
  $font-stack-moda-sans: "Moda Operandi Sans", Arial, sans-serif;
7
8
  $font-stack-moda-serif: "Moda Operandi Serif", "Times New Roman", Times, serif;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/tokens",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Constant values for modaoperandi.com",
5
5
  "repository": "git@github.com:ModaOperandi/tokens.git",
6
6
  "author": "Moda Operandi",
@@ -30,9 +30,10 @@
30
30
  "@commitlint/cli": "^17.0.0",
31
31
  "@commitlint/config-conventional": "^17.0.0",
32
32
  "@jedmao/semantic-release-npm-github-config": "^1.0.9",
33
+ "@moda/node-sass-export": "^0.1.1",
33
34
  "@types/color-string": "^1.5.0",
34
35
  "@types/node": "^18.7.15",
35
- "@types/node-sass": "^4.11.3",
36
+ "@types/sass": "^1.43.1",
36
37
  "@typescript-eslint/eslint-plugin": "^5.30.0",
37
38
  "@typescript-eslint/parser": "^5.30.0",
38
39
  "cz-conventional-changelog": "3.3.0",
@@ -45,10 +46,9 @@
45
46
  "gh-pages": "4.0.0",
46
47
  "husky": "^8.0.1",
47
48
  "jest": "^29.0.2",
48
- "node-sass": "^7.0.0",
49
- "node-sass-export": "^0.0.7",
50
49
  "pinst": "^3.0.0",
51
50
  "prettier": "^2.7.1",
51
+ "sass": "^1.57.1",
52
52
  "semantic-release": "^19.0.2",
53
53
  "typescript": "^4.0.2"
54
54
  },