Skip to content

Commit

Permalink
feat: huff icon
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Apr 6, 2024
1 parent a5d7196 commit e762f30
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 3 deletions.
Binary file modified assets/frappe.webp
Binary file not shown.
Binary file modified assets/latte.webp
Binary file not shown.
Binary file modified assets/macchiato.webp
Binary file not shown.
Binary file modified assets/mocha.webp
Binary file not shown.
4 changes: 4 additions & 0 deletions icons/css-variables/huff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/frappe/huff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/latte/huff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/macchiato/huff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/mocha/huff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions scripts/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function optimizeIcons() {
* Generates missing icons from existing ones from other palettes.
* If an icon exists in `icons/latte`, it will create its counterparts for other palettes.
*/
function generateIcons() {
async function generateIcons() {
const flavors = [
'css-variables',
'frappe',
Expand All @@ -98,7 +98,7 @@ function generateIcons() {
let generated = 0
for (const origin of flavors) {
const originPath = resolve('icons', origin)
const originSvgs = readdirSync(originPath)
const originSvgs = await readdir(originPath)

for (const dest of flavors.filter(f => f !== origin)) {
const destPath = resolve('icons', dest)
Expand Down Expand Up @@ -271,7 +271,7 @@ if (argv.flags.all || argv.flags.optimize)
await optimizeIcons()

if (argv.flags.all || argv.flags.generate)
generateIcons()
await generateIcons()

if (argv.flags.all || argv.flags.preview)
await previewIcons()
3 changes: 3 additions & 0 deletions src/defaults/fileIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ const fileIcons: Record<string, {
],
fileNames: ['CNAME'],
},
'huff': {
fileExtensions: ['huff'],
},
'husky': {
fileNames: [
'.huskyrc',
Expand Down

0 comments on commit e762f30

Please sign in to comment.