@ckeditor/ckeditor5-font 45.2.1 → 46.0.0-alpha.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 (55) hide show
  1. package/build/font.js +1 -1
  2. package/dist/index-content.css +10 -4
  3. package/dist/index-editor.css +6 -0
  4. package/dist/index.css +11 -4
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +31 -13
  7. package/dist/index.js.map +1 -1
  8. package/package.json +7 -7
  9. package/src/font.d.ts +5 -5
  10. package/src/font.js +5 -5
  11. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.d.ts +2 -2
  12. package/src/fontbackgroundcolor/fontbackgroundcolorcommand.js +2 -2
  13. package/src/fontbackgroundcolor/fontbackgroundcolorediting.d.ts +1 -1
  14. package/src/fontbackgroundcolor/fontbackgroundcolorediting.js +4 -4
  15. package/src/fontbackgroundcolor/fontbackgroundcolorui.d.ts +2 -2
  16. package/src/fontbackgroundcolor/fontbackgroundcolorui.js +2 -2
  17. package/src/fontbackgroundcolor.d.ts +3 -3
  18. package/src/fontbackgroundcolor.js +3 -3
  19. package/src/fontcolor/fontcolorcommand.d.ts +2 -2
  20. package/src/fontcolor/fontcolorcommand.js +2 -2
  21. package/src/fontcolor/fontcolorediting.d.ts +1 -1
  22. package/src/fontcolor/fontcolorediting.js +2 -2
  23. package/src/fontcolor/fontcolorui.d.ts +2 -2
  24. package/src/fontcolor/fontcolorui.js +2 -2
  25. package/src/fontcolor.d.ts +3 -3
  26. package/src/fontcolor.js +3 -3
  27. package/src/fontcommand.d.ts +1 -1
  28. package/src/fontcommand.js +1 -1
  29. package/src/fontfamily/fontfamilycommand.d.ts +2 -2
  30. package/src/fontfamily/fontfamilycommand.js +2 -2
  31. package/src/fontfamily/fontfamilyediting.d.ts +1 -1
  32. package/src/fontfamily/fontfamilyediting.js +2 -2
  33. package/src/fontfamily/fontfamilyui.d.ts +1 -1
  34. package/src/fontfamily/fontfamilyui.js +7 -5
  35. package/src/fontfamily/utils.d.ts +7 -0
  36. package/src/fontfamily/utils.js +12 -1
  37. package/src/fontfamily.d.ts +3 -3
  38. package/src/fontfamily.js +3 -3
  39. package/src/fontsize/fontsizecommand.d.ts +2 -2
  40. package/src/fontsize/fontsizecommand.js +2 -2
  41. package/src/fontsize/fontsizeediting.d.ts +1 -1
  42. package/src/fontsize/fontsizeediting.js +4 -4
  43. package/src/fontsize/fontsizeui.d.ts +1 -1
  44. package/src/fontsize/fontsizeui.js +3 -3
  45. package/src/fontsize/utils.d.ts +1 -0
  46. package/src/fontsize/utils.js +1 -0
  47. package/src/fontsize.d.ts +3 -3
  48. package/src/fontsize.js +3 -3
  49. package/src/index.d.ts +23 -19
  50. package/src/index.js +22 -13
  51. package/src/ui/colorui.d.ts +1 -1
  52. package/src/ui/colorui.js +2 -2
  53. package/src/utils.d.ts +12 -2
  54. package/src/utils.js +7 -0
  55. package/theme/fontsize.css +11 -4
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { CKEditorError } from 'ckeditor5/src/utils.js';
10
- import { isLength, isPercentage } from 'ckeditor5/src/engine.js';
11
- import FontSizeCommand from './fontsizecommand.js';
10
+ import { isLengthStyleValue, isPercentageStyleValue } from 'ckeditor5/src/engine.js';
11
+ import { FontSizeCommand } from './fontsizecommand.js';
12
12
  import { normalizeOptions } from './utils.js';
13
13
  import { buildDefinition, FONT_SIZE } from '../utils.js';
14
14
  // Mapping of `<font size="..">` styling to CSS's `font-size` values.
@@ -33,7 +33,7 @@ const styleFontSize = [
33
33
  *
34
34
  * depending on the {@link module:font/fontconfig~FontSizeConfig configuration}.
35
35
  */
36
- export default class FontSizeEditing extends Plugin {
36
+ export class FontSizeEditing extends Plugin {
37
37
  /**
38
38
  * @inheritDoc
39
39
  */
@@ -100,7 +100,7 @@ export default class FontSizeEditing extends Plugin {
100
100
  const editor = this.editor;
101
101
  // If `fontSize.supportAllValues=true`, we do not allow to use named presets in the plugin's configuration.
102
102
  const presets = definition.model.values.filter((value) => {
103
- return !isLength(String(value)) && !isPercentage(String(value));
103
+ return !isLengthStyleValue(String(value)) && !isPercentageStyleValue(String(value));
104
104
  });
105
105
  if (presets.length) {
106
106
  /**
@@ -10,7 +10,7 @@ import '../../theme/fontsize.css';
10
10
  /**
11
11
  * The font size UI plugin. It introduces the `'fontSize'` dropdown.
12
12
  */
13
- export default class FontSizeUI extends Plugin {
13
+ export declare class FontSizeUI extends Plugin {
14
14
  /**
15
15
  * @inheritDoc
16
16
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import { IconFontSize } from 'ckeditor5/src/icons.js';
10
- import { ViewModel, createDropdown, addListToDropdown, MenuBarMenuView, MenuBarMenuListView, MenuBarMenuListItemView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
+ import { UIModel, createDropdown, addListToDropdown, MenuBarMenuView, MenuBarMenuListView, MenuBarMenuListItemView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
11
11
  import { Collection } from 'ckeditor5/src/utils.js';
12
12
  import { normalizeOptions } from './utils.js';
13
13
  import { FONT_SIZE } from '../utils.js';
@@ -15,7 +15,7 @@ import '../../theme/fontsize.css';
15
15
  /**
16
16
  * The font size UI plugin. It introduces the `'fontSize'` dropdown.
17
17
  */
18
- export default class FontSizeUI extends Plugin {
18
+ export class FontSizeUI extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -133,7 +133,7 @@ function _prepareListOptions(options, command) {
133
133
  for (const option of options) {
134
134
  const def = {
135
135
  type: 'button',
136
- model: new ViewModel({
136
+ model: new UIModel({
137
137
  commandName: FONT_SIZE,
138
138
  commandParam: option.model,
139
139
  label: option.title,
@@ -8,5 +8,6 @@ import { type FontSizeOption } from '../fontconfig.js';
8
8
  * to the {@link module:font/fontconfig~FontSizeOption} format.
9
9
  *
10
10
  * @param configuredOptions An array of options taken from the configuration.
11
+ * @internal
11
12
  */
12
13
  export declare function normalizeOptions(configuredOptions: Array<string | number | FontSizeOption>): Array<FontSizeOption>;
@@ -11,6 +11,7 @@ import { CKEditorError } from 'ckeditor5/src/utils.js';
11
11
  * to the {@link module:font/fontconfig~FontSizeOption} format.
12
12
  *
13
13
  * @param configuredOptions An array of options taken from the configuration.
14
+ * @internal
14
15
  */
15
16
  export function normalizeOptions(configuredOptions) {
16
17
  // Convert options to objects.
package/src/fontsize.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module font/fontsize
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import FontSizeEditing from './fontsize/fontsizeediting.js';
10
- import FontSizeUI from './fontsize/fontsizeui.js';
9
+ import { FontSizeEditing } from './fontsize/fontsizeediting.js';
10
+ import { FontSizeUI } from './fontsize/fontsizeui.js';
11
11
  import type { FontSizeOption } from './fontconfig.js';
12
12
  /**
13
13
  * The font size plugin.
@@ -18,7 +18,7 @@ import type { FontSizeOption } from './fontconfig.js';
18
18
  * This is a "glue" plugin which loads the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} and
19
19
  * {@link module:font/fontsize/fontsizeui~FontSizeUI} features in the editor.
20
20
  */
21
- export default class FontSize extends Plugin {
21
+ export declare class FontSize extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
package/src/fontsize.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module font/fontsize
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
- import FontSizeEditing from './fontsize/fontsizeediting.js';
10
- import FontSizeUI from './fontsize/fontsizeui.js';
9
+ import { FontSizeEditing } from './fontsize/fontsizeediting.js';
10
+ import { FontSizeUI } from './fontsize/fontsizeui.js';
11
11
  import { normalizeOptions } from './fontsize/utils.js';
12
12
  /**
13
13
  * The font size plugin.
@@ -18,7 +18,7 @@ import { normalizeOptions } from './fontsize/utils.js';
18
18
  * This is a "glue" plugin which loads the {@link module:font/fontsize/fontsizeediting~FontSizeEditing} and
19
19
  * {@link module:font/fontsize/fontsizeui~FontSizeUI} features in the editor.
20
20
  */
21
- export default class FontSize extends Plugin {
21
+ export class FontSize extends Plugin {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
package/src/index.d.ts CHANGED
@@ -5,23 +5,27 @@
5
5
  /**
6
6
  * @module font
7
7
  */
8
- export { default as Font } from './font.js';
9
- export { default as FontBackgroundColor } from './fontbackgroundcolor.js';
10
- export { default as FontColor } from './fontcolor.js';
11
- export { default as FontFamily } from './fontfamily.js';
12
- export { default as FontSize } from './fontsize.js';
13
- export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
14
- export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
15
- export { default as FontColorEditing } from './fontcolor/fontcolorediting.js';
16
- export { default as FontColorUI } from './fontcolor/fontcolorui.js';
17
- export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
18
- export { default as FontFamilyUI } from './fontfamily/fontfamilyui.js';
19
- export { default as FontSizeEditing } from './fontsize/fontsizeediting.js';
20
- export { default as FontSizeUI } from './fontsize/fontsizeui.js';
21
- export type { default as FontBackgroundColorCommand } from './fontbackgroundcolor/fontbackgroundcolorcommand.js';
22
- export type { default as FontColorCommand } from './fontcolor/fontcolorcommand.js';
23
- export type { default as FontFamilyCommand } from './fontfamily/fontfamilycommand.js';
24
- export type { default as FontSizeCommand } from './fontsize/fontsizecommand.js';
25
- export type { FONT_BACKGROUND_COLOR, FONT_COLOR, FONT_FAMILY, FONT_SIZE, ColorSelectorDropdownView } from './utils.js';
26
- export type { FontColorConfig, FontFamilyConfig, FontSizeConfig } from './fontconfig.js';
8
+ export { Font } from './font.js';
9
+ export { FontBackgroundColor } from './fontbackgroundcolor.js';
10
+ export { FontColor } from './fontcolor.js';
11
+ export { FontFamily } from './fontfamily.js';
12
+ export { FontSize } from './fontsize.js';
13
+ export { FontCommand } from './fontcommand.js';
14
+ export { FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
15
+ export { FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
16
+ export { FontColorEditing } from './fontcolor/fontcolorediting.js';
17
+ export { FontColorUI } from './fontcolor/fontcolorui.js';
18
+ export { FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
19
+ export { FontFamilyUI } from './fontfamily/fontfamilyui.js';
20
+ export { FontSizeEditing } from './fontsize/fontsizeediting.js';
21
+ export { FontSizeUI } from './fontsize/fontsizeui.js';
22
+ export { FontBackgroundColorCommand } from './fontbackgroundcolor/fontbackgroundcolorcommand.js';
23
+ export { FontColorCommand } from './fontcolor/fontcolorcommand.js';
24
+ export { FontFamilyCommand } from './fontfamily/fontfamilycommand.js';
25
+ export { FontSizeCommand } from './fontsize/fontsizecommand.js';
26
+ export { FontColorUIBase } from './ui/colorui.js';
27
+ export { buildDefinition as _buildFontDefinition, renderUpcastAttribute as _renderUpcastFontColorAttribute, renderDowncastElement as _renderDowncastFontElement, addColorSelectorToDropdown as _addFontColorSelectorToDropdown, type FontConverterDefinition as _FontConverterDefinition, type FONT_BACKGROUND_COLOR, type FONT_COLOR, type FONT_FAMILY, type FONT_SIZE, type FontColorSelectorDropdownView } from './utils.js';
28
+ export type { FontColorConfig, FontFamilyConfig, FontFamilyOption, FontSizeConfig, FontSizeOption } from './fontconfig.js';
29
+ export { normalizeOptions as _normalizeFontFamilyOptions } from './fontfamily/utils.js';
30
+ export { normalizeOptions as _normalizeFontSizeOptions } from './fontsize/utils.js';
27
31
  import './augmentation.js';
package/src/index.js CHANGED
@@ -5,17 +5,26 @@
5
5
  /**
6
6
  * @module font
7
7
  */
8
- export { default as Font } from './font.js';
9
- export { default as FontBackgroundColor } from './fontbackgroundcolor.js';
10
- export { default as FontColor } from './fontcolor.js';
11
- export { default as FontFamily } from './fontfamily.js';
12
- export { default as FontSize } from './fontsize.js';
13
- export { default as FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
14
- export { default as FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
15
- export { default as FontColorEditing } from './fontcolor/fontcolorediting.js';
16
- export { default as FontColorUI } from './fontcolor/fontcolorui.js';
17
- export { default as FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
18
- export { default as FontFamilyUI } from './fontfamily/fontfamilyui.js';
19
- export { default as FontSizeEditing } from './fontsize/fontsizeediting.js';
20
- export { default as FontSizeUI } from './fontsize/fontsizeui.js';
8
+ export { Font } from './font.js';
9
+ export { FontBackgroundColor } from './fontbackgroundcolor.js';
10
+ export { FontColor } from './fontcolor.js';
11
+ export { FontFamily } from './fontfamily.js';
12
+ export { FontSize } from './fontsize.js';
13
+ export { FontCommand } from './fontcommand.js';
14
+ export { FontBackgroundColorEditing } from './fontbackgroundcolor/fontbackgroundcolorediting.js';
15
+ export { FontBackgroundColorUI } from './fontbackgroundcolor/fontbackgroundcolorui.js';
16
+ export { FontColorEditing } from './fontcolor/fontcolorediting.js';
17
+ export { FontColorUI } from './fontcolor/fontcolorui.js';
18
+ export { FontFamilyEditing } from './fontfamily/fontfamilyediting.js';
19
+ export { FontFamilyUI } from './fontfamily/fontfamilyui.js';
20
+ export { FontSizeEditing } from './fontsize/fontsizeediting.js';
21
+ export { FontSizeUI } from './fontsize/fontsizeui.js';
22
+ export { FontBackgroundColorCommand } from './fontbackgroundcolor/fontbackgroundcolorcommand.js';
23
+ export { FontColorCommand } from './fontcolor/fontcolorcommand.js';
24
+ export { FontFamilyCommand } from './fontfamily/fontfamilycommand.js';
25
+ export { FontSizeCommand } from './fontsize/fontsizecommand.js';
26
+ export { FontColorUIBase } from './ui/colorui.js';
27
+ export { buildDefinition as _buildFontDefinition, renderUpcastAttribute as _renderUpcastFontColorAttribute, renderDowncastElement as _renderDowncastFontElement, addColorSelectorToDropdown as _addFontColorSelectorToDropdown } from './utils.js';
28
+ export { normalizeOptions as _normalizeFontFamilyOptions } from './fontfamily/utils.js';
29
+ export { normalizeOptions as _normalizeFontSizeOptions } from './fontsize/utils.js';
21
30
  import './augmentation.js';
@@ -13,7 +13,7 @@ import { type FONT_BACKGROUND_COLOR, type FONT_COLOR } from '../utils.js';
13
13
  * It is used to create the `'fontBackgroundColor'` and `'fontColor'` dropdowns, each hosting
14
14
  * a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
15
15
  */
16
- export default class ColorUI extends Plugin {
16
+ export declare class FontColorUIBase extends Plugin {
17
17
  /**
18
18
  * The name of the command which will be executed when a color tile is clicked.
19
19
  */
package/src/ui/colorui.js CHANGED
@@ -14,7 +14,7 @@ import { addColorSelectorToDropdown } from '../utils.js';
14
14
  * It is used to create the `'fontBackgroundColor'` and `'fontColor'` dropdowns, each hosting
15
15
  * a {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
16
16
  */
17
- export default class ColorUI extends Plugin {
17
+ export class FontColorUIBase extends Plugin {
18
18
  /**
19
19
  * The name of the command which will be executed when a color tile is clicked.
20
20
  */
@@ -122,7 +122,7 @@ export default class ColorUI extends Plugin {
122
122
  colorSelectorView.on('colorPicker:cancel', () => {
123
123
  if (this._undoStepBatch.operations.length) {
124
124
  // We need to close the dropdown before the undo batch.
125
- // Otherwise, ColorUI treats undo as a selected color change,
125
+ // Otherwise, FontColorUIBase treats undo as a selected color change,
126
126
  // propagating the update to the whole selection.
127
127
  // That's an issue if spans with various colors were selected.
128
128
  dropdownView.isOpen = false;
package/src/utils.d.ts CHANGED
@@ -27,8 +27,13 @@ export declare const FONT_COLOR = "fontColor";
27
27
  export declare const FONT_BACKGROUND_COLOR = "fontBackgroundColor";
28
28
  /**
29
29
  * Builds a proper converter definition out of input data.
30
+ *
31
+ * @internal
30
32
  */
31
33
  export declare function buildDefinition(modelAttributeKey: string, options: Array<FontFamilyOption> | Array<FontSizeOption>): FontConverterDefinition;
34
+ /**
35
+ * @internal
36
+ */
32
37
  export type FontConverterDefinition = {
33
38
  model: {
34
39
  key: string;
@@ -43,6 +48,8 @@ export type FontConverterDefinition = {
43
48
  * responsible for upcasting data to the model.
44
49
  *
45
50
  * **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`.
51
+ *
52
+ * @internal
46
53
  */
47
54
  export declare function renderUpcastAttribute(styleAttr: string): (viewElement: ViewElement) => string;
48
55
  /**
@@ -51,6 +58,8 @@ export declare function renderUpcastAttribute(styleAttr: string): (viewElement:
51
58
  * responsible for downcasting a color attribute to a `<span>` element.
52
59
  *
53
60
  * **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`.
61
+ *
62
+ * @internal
54
63
  */
55
64
  export declare function renderDowncastElement(styleAttr: string): (modelAttributeValue: string, { writer }: DowncastConversionApi) => ViewAttributeElement;
56
65
  /**
@@ -67,9 +76,10 @@ export declare function renderDowncastElement(styleAttr: string): (modelAttribut
67
76
  * @param options.documentColorsCount The number of document colors inside the dropdown.
68
77
  * @param options.colorPickerViewConfig Configuration of the color picker view.
69
78
  * @returns The new color selector view.
79
+ * @internal
70
80
  */
71
81
  export declare function addColorSelectorToDropdown({ dropdownView, colors, columns, removeButtonLabel, colorPickerLabel, documentColorsLabel, documentColorsCount, colorPickerViewConfig }: {
72
- dropdownView: ColorSelectorDropdownView;
82
+ dropdownView: FontColorSelectorDropdownView;
73
83
  colors: Array<ColorDefinition>;
74
84
  columns: number;
75
85
  removeButtonLabel: string;
@@ -78,6 +88,6 @@ export declare function addColorSelectorToDropdown({ dropdownView, colors, colum
78
88
  documentColorsCount?: number;
79
89
  colorPickerViewConfig: ColorPickerViewConfig | false;
80
90
  }): ColorSelectorView;
81
- export type ColorSelectorDropdownView = DropdownView & {
91
+ export type FontColorSelectorDropdownView = DropdownView & {
82
92
  colorSelectorView?: ColorSelectorView;
83
93
  };
package/src/utils.js CHANGED
@@ -21,6 +21,8 @@ export const FONT_COLOR = 'fontColor';
21
21
  export const FONT_BACKGROUND_COLOR = 'fontBackgroundColor';
22
22
  /**
23
23
  * Builds a proper converter definition out of input data.
24
+ *
25
+ * @internal
24
26
  */
25
27
  export function buildDefinition(modelAttributeKey, options) {
26
28
  const definition = {
@@ -46,6 +48,8 @@ export function buildDefinition(modelAttributeKey, options) {
46
48
  * responsible for upcasting data to the model.
47
49
  *
48
50
  * **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`.
51
+ *
52
+ * @internal
49
53
  */
50
54
  export function renderUpcastAttribute(styleAttr) {
51
55
  return (viewElement) => normalizeColorCode(viewElement.getStyle(styleAttr));
@@ -56,6 +60,8 @@ export function renderUpcastAttribute(styleAttr) {
56
60
  * responsible for downcasting a color attribute to a `<span>` element.
57
61
  *
58
62
  * **Note**: The `styleAttr` parameter should be either `'color'` or `'background-color'`.
63
+ *
64
+ * @internal
59
65
  */
60
66
  export function renderDowncastElement(styleAttr) {
61
67
  return (modelAttributeValue, { writer }) => writer.createAttributeElement('span', {
@@ -76,6 +82,7 @@ export function renderDowncastElement(styleAttr) {
76
82
  * @param options.documentColorsCount The number of document colors inside the dropdown.
77
83
  * @param options.colorPickerViewConfig Configuration of the color picker view.
78
84
  * @returns The new color selector view.
85
+ * @internal
79
86
  */
80
87
  export function addColorSelectorToDropdown({ dropdownView, colors, columns, removeButtonLabel, colorPickerLabel, documentColorsLabel, documentColorsCount, colorPickerViewConfig }) {
81
88
  const locale = dropdownView.locale;
@@ -5,22 +5,29 @@
5
5
 
6
6
  /* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */
7
7
 
8
+ :root {
9
+ --ck-content-font-size-tiny: 0.7em;
10
+ --ck-content-font-size-small: 0.85em;
11
+ --ck-content-font-size-big: 1.4em;
12
+ --ck-content-font-size-huge: 1.8em;
13
+ }
14
+
8
15
  /* Styles should be prefixed with the `.ck-content` class.
9
16
  See https://github.com/ckeditor/ckeditor5/issues/6636 */
10
17
  .ck-content {
11
18
  & .text-tiny {
12
- font-size: .7em;
19
+ font-size: var(--ck-content-font-size-tiny);
13
20
  }
14
21
 
15
22
  & .text-small {
16
- font-size: .85em;
23
+ font-size: var(--ck-content-font-size-small);
17
24
  }
18
25
 
19
26
  & .text-big {
20
- font-size: 1.4em;
27
+ font-size: var(--ck-content-font-size-big);
21
28
  }
22
29
 
23
30
  & .text-huge {
24
- font-size: 1.8em;
31
+ font-size: var(--ck-content-font-size-huge);
25
32
  }
26
33
  }