Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amaranth 1.0 #1

Open
wants to merge 418 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
08b6bad
Update dependencies
Studio384 Aug 9, 2023
aa9c846
Add key icon
Studio384 Aug 9, 2023
3b2af45
Update dependencies
Studio384 Aug 9, 2023
325016a
Add pages
Studio384 Aug 9, 2023
30bd950
Update description
Studio384 Aug 9, 2023
c7c505a
Update dependencies
Studio384 Aug 9, 2023
44e0648
Downgrade dependencies
Studio384 Aug 9, 2023
5a339e3
Clenaup icon design
Studio384 Aug 9, 2023
816f44f
Fix pagination
Studio384 Aug 9, 2023
0a9c457
Revamp icon grid
Studio384 Aug 9, 2023
13d0e2b
Refresh icon demo
Studio384 Aug 9, 2023
785d60c
Fix tag colors
Studio384 Aug 9, 2023
6b04d25
Reset page on search
Studio384 Aug 9, 2023
3d7235f
Revamp header design
Studio384 Aug 9, 2023
4d9f1a5
Valkyrie 1.0 alpha 26
Studio384 Aug 9, 2023
ec677ab
Update iconography
Studio384 Aug 9, 2023
13511dd
Restore branding changes
Studio384 Aug 9, 2023
6c5fce3
Fix prefix, add dark mode support
Studio384 Aug 9, 2023
eb7f613
Add new icons, update existing icons
Studio384 Aug 9, 2023
f5d6ff3
Fix import typo
Studio384 Aug 10, 2023
488a8e7
Add 5 new icons
Studio384 Aug 10, 2023
40acbbd
Fix naming
Studio384 Aug 10, 2023
8415775
Add created/updated tags
Studio384 Aug 10, 2023
bc011b4
Add calendar icons, add create and update to markdown
Studio384 Aug 10, 2023
547590e
Redesign alarm-clock icon
Studio384 Aug 10, 2023
84931f3
Rename branch to code-brnach
Studio384 Aug 10, 2023
830bb25
Add campfire and car icon
Studio384 Aug 11, 2023
de83271
Update documentation
Studio384 Aug 11, 2023
0861777
Add more new icons
Studio384 Aug 11, 2023
ca39ce6
Rename disc, more new icons
Studio384 Aug 12, 2023
f80be34
Add gamepad, horizontal line, and hourglass icons
Studio384 Aug 13, 2023
872de20
Add more icons
Studio384 Aug 14, 2023
30fef9b
Redesign server
Studio384 Aug 14, 2023
890f6e8
Add starscout, star-half, signature and shoe-prints
Studio384 Aug 15, 2023
08cedd1
Adding stopwatch, tent and tiktok
Studio384 Aug 15, 2023
3fbb58f
Add receipt, rocket, scouting and ticket icons
Studio384 Aug 15, 2023
a380b05
Add 5 more icons
Studio384 Aug 16, 2023
bbc7c18
Add shopping cart icon
Studio384 Aug 16, 2023
f8a47bc
Reduce icons per page
Studio384 Aug 16, 2023
3a15133
Amaranth 1.0 alpha 2
Studio384 Aug 22, 2023
7541334
Revamp table icons, extend table edit set
Studio384 Aug 22, 2023
0374015
Update chart and circle icons
Studio384 Aug 23, 2023
db81551
Drop generating fonts
Studio384 Aug 23, 2023
a349d93
Amaranth 1.0 alpha 3
Studio384 Aug 23, 2023
ca1888c
Revamp documentation
Studio384 Sep 6, 2023
5628e92
Add category filter
Studio384 Sep 6, 2023
c615cbb
Big list
Studio384 Sep 6, 2023
11a72bb
Cleanup some categoriezations
Studio384 Sep 8, 2023
aa6eb9e
Various type fixes and enhancements
Studio384 Sep 8, 2023
b66cabf
Various minor design enhancements
Studio384 Sep 8, 2023
2c2344e
Reset page on category selection
Studio384 Sep 8, 2023
3591eab
Update Windows, wallet
Studio384 Sep 8, 2023
9f04585
Add a number of cloud icons
Studio384 Sep 9, 2023
3247ed7
Fix version tagging and name for pages
Studio384 Sep 9, 2023
64efdbb
Update dependencies
Studio384 Sep 9, 2023
0197185
Fix pages script
Studio384 Sep 9, 2023
a5cdf83
Rework without the need for MUI Base
Studio384 Sep 9, 2023
6256761
Use the relative package
Studio384 Sep 9, 2023
5832a37
Update center position
Studio384 Sep 9, 2023
54068ab
More weather icons
Studio384 Sep 10, 2023
822a81b
Even more weather icons
Studio384 Sep 10, 2023
2a6ecd1
Add more new icons
Studio384 Sep 10, 2023
5a44a36
Add planet-ringed and globe, redesign snowflake, update starscout tags
Studio384 Sep 10, 2023
97dfb38
Add style manipulations
Studio384 Sep 10, 2023
ab0542e
Rework icon page
Studio384 Sep 10, 2023
687fdbb
Update icon library, update dependencies
Studio384 Nov 17, 2023
f6f64cf
Amaranth 1.0 alpha 4
Studio384 Nov 17, 2023
7a6ca08
Add circle icon
Studio384 Nov 17, 2023
7f1a572
Amaranth 1.0 alpha 5
Studio384 Nov 17, 2023
0b9a300
Add new Editor icons
Studio384 Dec 20, 2023
f935ea7
Update dependencies
Studio384 Dec 20, 2023
4ac1fde
Add amicons icon
Studio384 Jan 7, 2024
10d2e12
Update dependencies
Studio384 Jan 27, 2024
0b5f40d
Update iconography, fix files slug
Studio384 Jan 28, 2024
560147f
Amicon branding implementation
Studio384 Jan 28, 2024
d7f3d11
More documentation improvements
Studio384 Jan 29, 2024
2b1f655
Remove 2 icons
Studio384 Jan 29, 2024
e2426e3
Update preview grid
Studio384 Jan 29, 2024
efefa04
Connect home search to icons
Studio384 Jan 29, 2024
de180ea
Add spinner icon, refresh other icons
Studio384 Jan 30, 2024
6d3d607
Expand component functionality
Studio384 Jan 30, 2024
2b48d27
Fix icons overveiw
Studio384 Jan 30, 2024
563c14a
Drop Dividers
Studio384 Jan 30, 2024
5cf6594
Add favicon
Studio384 Jan 30, 2024
b4353f6
Update favicon
Studio384 Jan 31, 2024
c751ad2
Use white variant
Studio384 Jan 31, 2024
1ba4d45
Reorganize docs, refresh installation documentation
Studio384 Jan 31, 2024
3a0e7d8
Update favicon
Studio384 Jan 31, 2024
76b87e3
Fix CSS variable overwrite issues
Studio384 Jan 31, 2024
ff966fc
Accept CSS properties
Studio384 Jan 31, 2024
f7da0d9
Revamp spin documentation
Studio384 Jan 31, 2024
520007c
Clear default values
Studio384 Jan 31, 2024
415d4dd
Refresh rotate documentation
Studio384 Jan 31, 2024
68353e4
Refresh flip documentation
Studio384 Jan 31, 2024
1307d4a
Refresh Beat documentation
Studio384 Jan 31, 2024
955fd40
Improve documentation on defaults for pulse
Studio384 Jan 31, 2024
76139b6
Border improvements
Studio384 Jan 31, 2024
e5bd3be
Name consistency
Studio384 Jan 31, 2024
da84523
Use codeblock component on Home
Studio384 Jan 31, 2024
d0a5b7e
Fix scroll navigation
Studio384 Jan 31, 2024
8deb5d8
Start implementing playground
Studio384 Feb 1, 2024
6f789de
Use universal Playground control
Studio384 Feb 1, 2024
768ced7
Refresh color palette, various minor fixes
Studio384 Feb 2, 2024
23f78f4
Refresh Patreon logo, add new icons
Studio384 Feb 4, 2024
b6642dc
Add envelope open and updat envelope
Studio384 Feb 4, 2024
84bfa9d
Update dependencies
Studio384 Feb 4, 2024
e1e8e9d
Introduce new Home and Docs design
Studio384 Feb 6, 2024
6e6eb0a
Add mouse icons
Studio384 Feb 7, 2024
cef3418
Update dependencies
Studio384 Feb 7, 2024
182e6a1
Split page layout, update icon page
Studio384 Feb 7, 2024
01fceea
Cleanup layouts
Studio384 Feb 7, 2024
8afb2d0
Fix safe margin
Studio384 Feb 7, 2024
15d26f5
Implement update color system
Studio384 Feb 7, 2024
807f7a3
Fix navbar spacing
Studio384 Feb 7, 2024
c56bf23
Color adjustments
Studio384 Feb 7, 2024
0b909af
Use solid buttons
Studio384 Feb 7, 2024
59e1bf7
Navbar design enhancements
Studio384 Feb 7, 2024
ca57685
Update dependencies
Studio384 Feb 8, 2024
c3c5a10
Keyboard brightness icons, and loader, refresh envelope
Studio384 Feb 8, 2024
2f72b3a
Update library meta data
Studio384 Feb 8, 2024
dfa0a39
Add all the battery icons
Studio384 Feb 8, 2024
2725906
Further refinements to theme
Studio384 Feb 9, 2024
887475a
Clean up icons icon
Studio384 Feb 9, 2024
7af0a59
Add changelog
Studio384 Feb 9, 2024
85c691a
Give a little more rom to breath
Studio384 Feb 9, 2024
4192c4d
Update Facebook brand
Studio384 Feb 9, 2024
e54b801
Add "more icons in category" to icon page
Studio384 Feb 9, 2024
08d36ae
Move changelog under docs route
Studio384 Feb 9, 2024
cc78d33
Minor typography updates
Studio384 Feb 9, 2024
c14a829
Built new example view
Studio384 Feb 9, 2024
c511422
No shadows
Studio384 Feb 9, 2024
aa9561e
Add Icon grid component, cleaner grid lines
Studio384 Feb 9, 2024
272c9d9
Revamp the footer design
Studio384 Feb 9, 2024
6c78359
More spacing improvements
Studio384 Feb 9, 2024
683503c
Add date to release notes
Studio384 Feb 9, 2024
18ca66e
Update mouse icon
Studio384 Feb 9, 2024
942c08a
Add share-node icon
Studio384 Feb 10, 2024
338c40d
Update dependencies
Studio384 Feb 10, 2024
8f24bf1
The numbers update
Studio384 Feb 10, 2024
6864894
Update 4, remove ellipsis icon
Studio384 Feb 10, 2024
94790c1
Footer design updates
Studio384 Feb 10, 2024
0fdc1bf
Add calculator, notification, option
Studio384 Feb 10, 2024
c986f17
The alphabet update
Studio384 Feb 10, 2024
747b8ac
Move A-gum to correct location
Studio384 Feb 10, 2024
ace4c15
More rebrand work to Amicons
Studio384 Feb 11, 2024
b7da335
Implement multi category search and icon count
Studio384 Feb 12, 2024
95af866
Add folder and link icon, rename notification to toast
Studio384 Feb 12, 2024
8687458
Fix expand, add option for bug fixes to release notes
Studio384 Feb 12, 2024
ad6f376
Add camera icon
Studio384 Feb 12, 2024
a357059
Update dependencies
Studio384 Feb 12, 2024
2da6db0
Fixing various type issues
Studio384 Feb 12, 2024
5f94589
Category cleanup, update docs navigation style
Studio384 Feb 13, 2024
f646f6f
Scroll to the top
Studio384 Feb 13, 2024
6e4a392
Update changelog
Studio384 Feb 13, 2024
50d3258
Update arrow up right from square icon
Studio384 Feb 13, 2024
b639e0d
Fix double icons
Studio384 Feb 13, 2024
9251f5b
Add scale customization for beat
Studio384 Feb 13, 2024
810353d
Add the fade property
Studio384 Feb 13, 2024
b671d6d
Add ApiTable component
Studio384 Feb 13, 2024
2d1a14c
Use different demo icons
Studio384 Feb 13, 2024
5fdb265
Various type fixes
Studio384 Feb 14, 2024
c6eb5fe
Add pages
Studio384 Feb 14, 2024
197a6aa
Add GitHub workflow
Studio384 Feb 14, 2024
f169e86
Update GitHub action
Studio384 Feb 14, 2024
63e69d2
Add missing uses
Studio384 Feb 14, 2024
9600d59
Fix wait for build
Studio384 Feb 14, 2024
b7f44a8
Update actions to v4
Studio384 Feb 14, 2024
b9ebcb0
Fix download folder
Studio384 Feb 14, 2024
c02f690
Remove pages
Studio384 Feb 14, 2024
185c361
Require success
Studio384 Feb 14, 2024
fd6c690
Update locations
Studio384 Feb 14, 2024
823dc26
Fix locations
Studio384 Feb 14, 2024
81b83ee
More fixes
Studio384 Feb 14, 2024
d0c5010
Return to previosu config
Studio384 Feb 14, 2024
8d5f5cf
Move job around
Studio384 Feb 14, 2024
042d81d
Simplify workflow
Studio384 Feb 14, 2024
59bd821
More cleanup
Studio384 Feb 14, 2024
a0d266e
More fixes
Studio384 Feb 14, 2024
9f1acf0
Fix environment
Studio384 Feb 14, 2024
6c785a8
Fix root name
Studio384 Feb 14, 2024
ab00bd8
Set base route
Studio384 Feb 14, 2024
6100ab7
Fix home page
Studio384 Feb 14, 2024
72fa62a
Replace router
Studio384 Feb 14, 2024
4e8e5e7
Fix pathing and linking
Studio384 Feb 14, 2024
3481741
Restore base path
Studio384 Feb 14, 2024
102b78b
Fix logo
Studio384 Feb 14, 2024
ca4ce6f
Attempt at multi stage
Studio384 Feb 14, 2024
965c479
Update paths
Studio384 Feb 14, 2024
7e9850a
Drop custom style prop
Studio384 Feb 14, 2024
8859038
Change span type
Studio384 Feb 14, 2024
f79c87d
Don't extend interface
Studio384 Feb 14, 2024
6c2d0bd
Optimisez deps
Studio384 Feb 14, 2024
7edb902
Update artifact workflow
Studio384 Feb 14, 2024
25b5364
Fix data path
Studio384 Feb 14, 2024
55cf91c
Update actions
Studio384 Feb 14, 2024
6598833
Update dependencies, and remove redux
Studio384 Feb 14, 2024
72fa790
Add dev warning
Studio384 Feb 14, 2024
fb855f7
First part of the transportation update
Studio384 Feb 15, 2024
0b72a46
Bunch of shapes
Studio384 Feb 16, 2024
836f335
Update dependencies
Studio384 Feb 16, 2024
00b91f5
Add Studio 384 logo, remove Amaranth logo
Studio384 Feb 16, 2024
e433837
Update changelog
Studio384 Feb 16, 2024
77caa70
Plural Amicons
Studio384 Feb 16, 2024
102fd6d
Revamp all the heading icons
Studio384 Feb 16, 2024
c2992da
Add fix for heading-2 icon
Studio384 Feb 17, 2024
e8ec48a
Add Threads icon
Studio384 Feb 17, 2024
047293b
Replace Studio 384 icon
Studio384 Feb 17, 2024
53179ea
Update safari icon
Studio384 Feb 17, 2024
1661e21
Fix translate icon border radius
Studio384 Feb 17, 2024
5827212
Update changelog
Studio384 Feb 17, 2024
89fe6a2
Update changelog
Studio384 Feb 17, 2024
f02fd82
Start implementing a better search function
Studio384 Feb 18, 2024
327f71d
Add chip bar for searches, move input to url
Studio384 Feb 18, 2024
2f6e2ae
Fix category link, hide icon category if there is no other icon or no…
Studio384 Feb 18, 2024
9240c54
Fix needle type
Studio384 Feb 18, 2024
8d8b42b
Revamp pagination
Studio384 Feb 18, 2024
dbfbaf3
Update dependencies
Studio384 Feb 18, 2024
0aabc8b
Couple of type fixes
Studio384 Feb 18, 2024
4e1f687
Revert dependencies
Studio384 Feb 18, 2024
036d206
Fix lcok
Studio384 Feb 18, 2024
66c78d6
Fix dependencies
Studio384 Feb 18, 2024
01edf39
Make it an underscore
Studio384 Feb 18, 2024
f238afb
Cleanup props for pagination
Studio384 Feb 18, 2024
33432a7
Revamp routing for documentation
Studio384 Feb 19, 2024
67c1109
Enable right-click navigation
Studio384 Feb 19, 2024
371b246
Fix accidental setting page to 0
Studio384 Feb 19, 2024
95168b3
Remove download button
Studio384 Feb 19, 2024
be8a207
Update dependencies
Studio384 Feb 19, 2024
06427c5
Revamp Home with better responsive design
Studio384 Feb 19, 2024
f2f0b11
Update dependencies
Studio384 Feb 22, 2024
619ca00
Update dependencies
Studio384 Feb 23, 2024
d6bdd9c
Update dependencies
Studio384 Mar 12, 2024
d54c371
The gripping order update
Studio384 Mar 12, 2024
abe6a63
The file update
Studio384 Mar 12, 2024
0798cd4
Update documentation
Studio384 Mar 12, 2024
0725173
Update README.md
Studio384 Mar 12, 2024
15afb36
Amicons 1.0 alpha 7
Studio384 Mar 12, 2024
1d67f2c
Update magnifying icon
Studio384 Mar 22, 2024
3c5df19
Rotate left icon
Studio384 Mar 22, 2024
ff52b4c
Update library
Studio384 Mar 22, 2024
11bb894
Update dependencies
Studio384 Apr 29, 2024
4e2dd43
Fix search not working
Studio384 Apr 29, 2024
a1b732c
Fix Studio 384 font
Studio384 Apr 29, 2024
721646e
Cleaner shadows
Studio384 Apr 29, 2024
644e53f
Drop shadows
Studio384 Apr 29, 2024
91e3678
Documentation design updates
Studio384 May 7, 2024
9716ae2
Add more new icons
Studio384 May 7, 2024
277c8ac
Update secondary brand colors
Studio384 May 7, 2024
ac400fd
Branding update
Studio384 May 7, 2024
6f1ab7e
Update dependencies
Studio384 May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
26 changes: 0 additions & 26 deletions .fantasticonrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/BugReport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ body:
id: current
attributes:
label: Current behavior
description: Describe the current faulty beharior of Valkyrie.
description: Describe the current faulty beharior of Amicons.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Describe the expected beharior of Valkyrie.
description: Describe the expected beharior of Amicons.
validations:
required: true
- type: textarea
Expand All @@ -40,7 +40,7 @@ body:
- type: checkboxes
id: implementations
attributes:
label: Which parts of Valkyrie are affected?
label: Which parts of Amicons are affected?
options:
- label: Web fonts and CSS
required: false
Expand All @@ -56,9 +56,9 @@ body:
attributes:
label: Bug report checklist
options:
- label: This bug occures in the latest version of Valkyrie.
- label: This bug occures in the latest version of Amicons.
required: true
- label: The reproduction is included and is the minimum test case to recreate the faulty behavior.
required: true
- label: I have [searched the issues](https://github.com/sippy-platform/valkyrie/issues) for any possible duplications of this bug report.
- label: I have [searched the issues](https://github.com/studio384/amicons/issues) for any possible duplications of this bug report.
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/FeatureRequest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Feature Request
description: Suggest a new idea for Valkyrie.
description: Suggest a new idea for Amicons.
title: "[Feature] "
labels: [feature]
assignees:
Expand Down Expand Up @@ -32,5 +32,5 @@ body:
options:
- label: This is a single feature.
required: true
- label: I have [searched the issues](https://github.com/sippy-platform/valkyrie/issues) for any possible duplications of this feature request.
- label: I have [searched the issues](https://github.com/studio384/amicons/issues) for any possible duplications of this feature request.
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/IconRequest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Icon Request
description: Request a new icon to be added to the set.
title: "[Icon] Add vi-"
title: "[Icon] Add ai-"
labels: [icon, external]
assignees:
- studio384
Expand Down Expand Up @@ -32,7 +32,7 @@ body:
options:
- label: This is a single icon or part of an expected pair (e.g. `eye` and `eye-slashed`).
required: true
- label: I have [searched the issues](https://github.com/sippy-platform/valkyrie/issues) for any possible duplications of this icon request.
- label: I have [searched the issues](https://github.com/studio384/amicons/issues) for any possible duplications of this icon request.
required: true
- label: An example image is included if available.
required: false
75 changes: 75 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Deploy to GitHub Pages

on:
push:
branches: ['1.0']
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Production build
run: npm run prod
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amicons
path: |
dist
node_modules

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Download artifact
id: download
uses: actions/download-artifact@v4
with:
name: amicons
- name: Install dependencies
if: steps.download.outcome == 'success'
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/node_modules
/dist
.DS_Store
/.hugo_build.lock
/_site/
/node_modules/
/resources/
/dist/
12 changes: 6 additions & 6 deletions .svg-to-tsrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"srcFiles": ["./icons/**/*.svg"],
"outputDirectory": "./src",
"interfaceName": "ValkyrieIcon",
"typeName": "Valkyrie",
"prefix": "vi",
"fileName": "Valkyrie",
"interfaceName": "IAmicon",
"typeName": "Amicons",
"prefix": "ai",
"fileName": "Amicons",
"additionalModelFile": "./src",
"compileSources": true,
"completeIconSetName": "valkyrieSet"
}
"completeIconSetName": "amiconSet"
}
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Valkyrie
# Amicons
An open source icon set for the next generation of Sippy.

# Usage
Install Valkyrie with the following npm command.
Install Amicons with the following npm command.

```
npm install @sippy-platform/valkyrie
npm install @studio384/amicons
```

Valkyrie includes a number of ways to use it. Our package will include the individual SVG files, a React-component and JavaScript implementation with TypeScript definitions, as well as an old-school webfont.

# 216 icons
[Available on Figma](https://www.figma.com/file/jeP1aSRulegRxHDegrrmWc/Valkyrie?node-id=1%3A11358)
Amicons includes a number of ways to use it. Our package will include the individual SVG files, a React-component and JavaScript implementation with TypeScript definitions, as well as an old-school webfont.

# About
Valkyrie is an iconset designed for use in the Mellow Design Language. Our goal is to provide a highly-optimized set of icons that are custom made for Sippy and any future environments required. As such, Valkyrie will mostly include iconography related to basic UI (arrows, menu icons, etc.) and phone iconography (voicemail, call directions, etc.).
Amicons is an icon set built for ChangeWindows, Starscout and more projects, sharing code with [Valkyrie](https://github.com/sippy-platform/valkyrie) and the original ChangeWindows Amaranth project.

# License
AGPL v3
117 changes: 117 additions & 0 deletions build/generate-library.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#!/usr/bin/env node

"use strict";

const fs = require("fs").promises;
const fst = require("fs");
const path = require("path");
const picocolors = require("picocolors");

const iconsDir = path.join(__dirname, "../docs/public/data/icons");
const pagesDir = path.join(__dirname, "../docs/src/data/");

function getReactImportName(string) {
return `ai${string
.split("-")
.map(word => {
return word[0].toUpperCase() + word.substring(1);
})
.join("")}`;
}

async function main(file) {
const iconFilePath = path.join(iconsDir, file);
const iconFile = fst.readFileSync(iconFilePath);

let iconJson = {};

try {
iconJson = JSON.parse(iconFile);
} catch (e) {
console.log(iconFilePath);
}

const iconBasename = path.basename(file, path.extname(file));
const iconTitle = getReactImportName(iconBasename);

const jsonTemplate = `
{
component: '${iconTitle}',
categories: ${JSON.stringify(iconJson.categories)},
tags: ${JSON.stringify(iconJson.tags)},
slug: '${iconBasename}',
icon: ${iconTitle}
}`;

return [`${iconTitle}`, jsonTemplate, iconJson.categories];
}

(async () => {
try {
const timeLabel = picocolors.cyan(`Library generation finished`);

console.log(picocolors.cyan(`Library generation started`));
console.time(timeLabel);

const files = await fs.readdir(iconsDir);

const names = [];
const configs = [];
let categories = new Set();

// Read content from each icon
await Promise.all(
files.map(async file => {
const [name, config, cats] = await Promise.resolve(main(file));

names.push(name);
configs.push(config);

cats.map(cat => {
categories.add(cat);
});
})
);

categories = Array.from(categories).sort();

const library = `
import { ${names.map(icon => `${icon}`)} } from '@studio384/amaranth';

const icons = [${configs.map(page => `${page}`)}
];

export default icons;`;

await fs.writeFile(path.join(pagesDir, `icons.ts`), library);

const categoriesTemplate = `
import { aiCircleDashed } from '@studio384/amaranth';

const categories = [${categories.map(
cat => `
{
slug: "${cat}",
title: "${cat}",
icon: aiCircleDashed
}`
)}
];

export default categories;`;

// await fs.writeFile(path.join(pagesDir, `categories.ts`), categoriesTemplate)

const filesLength = files.length;

console.log(
picocolors.green("\nSuccess, %s icon%s written to library!"),
filesLength,
filesLength !== 1 ? "s" : ""
);
console.timeEnd(timeLabel);
} catch (error) {
console.error(error);
process.exit(1);
}
})();
Loading