Skip to content

Commit

Permalink
#49 Add codepoints for
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Oct 20, 2022
1 parent 7c1f3e3 commit 8373b00
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 8 deletions.
10 changes: 7 additions & 3 deletions .fantasticonrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
const codepoints = require('./dist/fonts/valkyrie.json')

module.exports = {
inputDir: './icons',
outputDir: './dist',
fontTypes: ['ttf', 'woff', 'woff2', 'eot'],
assetTypes: ['css', 'scss', 'html'],
assetTypes: ['css', 'scss', 'html', 'json'],
fontsUrl: '.',
name: 'Valkyrie',
prefix: 'vi',
selector: '.vi',
codepoints,
normalize: true,
descent: 26,
templates: {
Expand All @@ -21,6 +24,7 @@ module.exports = {
woff2: './dist/fonts/Valkyrie.woff2',
css: './dist/fonts/Valkyrie.css',
scss: './dist/fonts/Valkyrie.scss',
html: './docs/index.html'
html: './docs/index.html',
json: './dist/fonts/valkyrie.json',
}
};
};
225 changes: 225 additions & 0 deletions docs/fonts/valkyrie.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
{
"a-gum": 61697,
"address-book": 61698,
"angle-down": 61699,
"angle-left": 61700,
"angle-right": 61701,
"angle-up": 61702,
"angles-y": 61703,
"apple-app-store": 61704,
"arrow-down-short-wide": 61705,
"arrow-down-to-line": 61706,
"arrow-down-wide-short": 61707,
"arrow-down": 61708,
"arrow-left-from-bracket": 61709,
"arrow-left-to-bracket": 61710,
"arrow-left-to-line": 61711,
"arrow-left": 61712,
"arrow-pointer": 61713,
"arrow-right-from-bracket": 61714,
"arrow-right-prohibited": 61715,
"arrow-right-to-bracket": 61716,
"arrow-right-to-line": 61717,
"arrow-right": 61718,
"arrow-rotate-right": 61719,
"arrow-up-short-wide": 61720,
"arrow-up-to-line": 61721,
"arrow-up-wide-short": 61722,
"arrow-up": 61723,
"arrows-rotate-right": 61724,
"asterisk": 61725,
"at": 61726,
"backward": 61727,
"bars": 61728,
"blf": 61729,
"bold": 61730,
"book": 61731,
"box-open-full": 61732,
"brackets-curly": 61733,
"bug": 61734,
"building": 61735,
"calendar-stars": 61736,
"calendar": 61737,
"chain-slash": 61738,
"chain": 61739,
"chart-pie": 61740,
"check": 61741,
"chevron-down": 61742,
"chevron-left": 61743,
"chevron-right": 61744,
"chevron-up": 61745,
"chrome": 61746,
"circle-check": 61747,
"circle-exclamation": 61748,
"circle-info": 61749,
"circle-plus": 61750,
"circle-question": 61751,
"circle-user": 61752,
"circle-xmark": 61753,
"city": 61754,
"clock-rotate-left": 61755,
"clock": 61756,
"code": 61757,
"codeblock": 61758,
"compass": 61759,
"compress": 61760,
"copy": 61761,
"devices": 61762,
"display": 61763,
"earth": 61764,
"eclipse": 61765,
"edge": 61766,
"ellipsis": 61767,
"envelope": 61768,
"ethernet": 61769,
"euro": 61770,
"expand": 61771,
"eye-slash": 61772,
"eye": 61773,
"facebook-messenger": 61774,
"facebook": 61775,
"fast-backward": 61776,
"fast-forward": 61777,
"fax": 61778,
"file": 61779,
"files-list": 61780,
"files": 61781,
"filmstrip": 61782,
"filter-plus": 61783,
"filter-xmark": 61784,
"filter": 61785,
"fingerprint": 61786,
"firefox": 61787,
"flag-checkered": 61788,
"flag": 61789,
"floppy-disk": 61790,
"folder": 61791,
"forward": 61792,
"gauge": 61793,
"gear": 61794,
"gift": 61795,
"github": 61796,
"google-play": 61797,
"grid": 61798,
"grip-lines": 61799,
"heading-1": 61800,
"heading-2": 61801,
"heading-3": 61802,
"heading-4": 61803,
"heading-5": 61804,
"heading-6": 61805,
"headset": 61806,
"heart-crack": 61807,
"heart-half": 61808,
"heart": 61809,
"house": 61810,
"id-card": 61811,
"image": 61812,
"italic": 61813,
"laptop": 61814,
"layers-plus": 61815,
"layers": 61816,
"lightbulb-on": 61817,
"lightbulb": 61818,
"line": 61819,
"linkedin": 61820,
"list-checks": 61821,
"list-clock": 61822,
"list-ordered-clock": 61823,
"list-ordered": 61824,
"list": 61825,
"location-pin-dot": 61826,
"location-pin-slash": 61827,
"location-pin": 61828,
"location-pins-route": 61829,
"lock-open": 61830,
"lock": 61831,
"magnifying-glass": 61832,
"megaphone": 61833,
"message-pen": 61834,
"message-smile": 61835,
"message-text": 61836,
"message": 61837,
"microphone": 61838,
"moon": 61839,
"music": 61840,
"network": 61841,
"numpad": 61842,
"paper-plane": 61843,
"parachute-box": 61844,
"paragraph": 61845,
"pause": 61846,
"pen": 61847,
"people-circle": 61848,
"people": 61849,
"person-clock": 61850,
"person-gear": 61851,
"person-headset": 61852,
"person-list": 61853,
"person-lock": 61854,
"person-plus": 61855,
"person": 61856,
"phone-arrow-down-left-prohibited": 61857,
"phone-arrow-down-left": 61858,
"phone-arrow-up-right-prohibited": 61859,
"phone-arrow-up-right": 61860,
"phone-clock": 61861,
"phone-gear": 61862,
"phone-list": 61863,
"phone-office": 61864,
"phone-volume": 61865,
"phone": 61866,
"play-pause": 61867,
"play": 61868,
"plus": 61869,
"power": 61870,
"prohibited": 61871,
"puzzle-piece": 61872,
"quote": 61873,
"redo": 61874,
"repeat-once": 61875,
"repeat": 61876,
"safari": 61877,
"server": 61878,
"shield-keyhole": 61879,
"shield-plus": 61880,
"shield-xmark": 61881,
"shield": 61882,
"shuffle": 61883,
"sim-card": 61884,
"sippy": 61885,
"sliders": 61886,
"smartphone-arrow-right": 61887,
"smartphone": 61888,
"spinner-third": 61889,
"spy": 61890,
"square-gum": 61891,
"star": 61892,
"stop": 61893,
"store": 61894,
"strikethrough": 61895,
"sun": 61896,
"swatchbook": 61897,
"table-clock": 61898,
"table": 61899,
"tag": 61900,
"tower-broadcast": 61901,
"trash-can": 61902,
"triangle-exclamation": 61903,
"underline": 61904,
"undo": 61905,
"valkyrie-sword": 61906,
"video": 61907,
"voicemail": 61908,
"volume-0": 61909,
"volume-1": 61910,
"volume-2": 61911,
"volume-3": 61912,
"volume-slash": 61913,
"wallpaper": 61914,
"waveform": 61915,
"webhooks-clock": 61916,
"webhooks": 61917,
"window": 61918,
"xmark": 61919
}
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"clean": "rimraf dist",
"docs:fonts": "copyfiles -a \"dist/fonts/*.*\" \"docs/fonts\" -f",
"fonts": "npm run fonts:generate && npm run fonts:docs",
"fonts:generate": "mkdirp dist/fonts && fantasticon",
"fonts:generate": "fantasticon",
"fonts:docs": "copyfiles -a \"dist/fonts/*.*\" \"docs/fonts\" -f",
"icons": "npm run icons:clean && npm run icons:ts",
"icons:clean": "svgo -f ./icons -o ./icons",
"icons:mellow:clean": "svgo -f ./mellow -o ./mellow",
"icons:ts": "svg-to-ts-constants",
"mellow": "svgo -f ./mellow -o ./mellow",
"test": "echo \"Error: no test specified\" && exit 1",
"prod": "npm run clean && npm run icons && npm run fonts && npm run build && npm run scss",
"prod": "npm run icons && npm run fonts && npm run build && npm run scss",
"scss": "npm run scss:compile && npm run scss:prefix && npm run scss:copy",
"scss:compile": "node-sass src -o dist --output-style compressed",
"scss:copy": "bundle-scss --mask \"src/valkyrie.scss\" --dest \"dist/valkyrie.scss\"",
Expand Down Expand Up @@ -65,7 +64,6 @@
"postcss-cli": "10.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "3.0.2",
"sass": "1.55.0",
"svg-to-ts": "8.9.0",
"svgo": "2.8.0",
Expand Down

0 comments on commit 8373b00

Please sign in to comment.