feature: create Font entity with types for filtering
This commit is contained in:
1
src/entities/Font/index.ts
Normal file
1
src/entities/Font/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export type { FontCategory, FontProvider, FontSubset } from './model/font';
|
||||||
14
src/entities/Font/model/font.ts
Normal file
14
src/entities/Font/model/font.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* Font category
|
||||||
|
*/
|
||||||
|
export type FontCategory = 'sans-serif' | 'serif' | 'display' | 'handwriting' | 'monospace';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Font provider
|
||||||
|
*/
|
||||||
|
export type FontProvider = 'google' | 'fontshare';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Font subset
|
||||||
|
*/
|
||||||
|
export type FontSubset = 'latin' | 'latin-ext' | 'cyrillic' | 'greek' | 'arabic' | 'devanagari';
|
||||||
Reference in New Issue
Block a user