diff --git a/README.md b/README.md
index 95d71ae..5458d75 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really.
-- 1047 icons and counting
+- 1,248 icons and counting
- 6 weights: **Thin**, **Light**, **Regular**, **Bold**, **Fill**, and **Duotone**
- Designed at 16 x 16px to read well small and scale up big
- Raw stroke information retained to fine-tune the style
@@ -13,9 +13,9 @@ More ways to use at [phosphoricons.com](https://phosphoricons.com).
## For developers
-Phosphor is available as a [one-liner](https://github.com/phosphor-icons/phosphor-icons) script, [React package](https://github.com/phosphor-icons/phosphor-react), and [Vue package](https://github.com/phosphor-icons/phosphor-vue), all of which can be sourced from NPM or from a CDN.
+Phosphor is available for [web](https://github.com/phosphor-icons/web), [React](https://github.com/phosphor-icons/react), [Vue](https://github.com/phosphor-icons/vue), [Flutter](https://github.com/phosphor-icons/flutter), [Elm](https://github.com/phosphor-icons/phosphor-elm), and other frameworks and platforms.
-### HTML/CSS
+### Vanilla Web
- **Simple to use** – We use a similar approach as many other icon sets out there, providing icons as a webfont that uses Unicode's Private Use Area character codes to map normally non-rendering characters to icons. But you don't need to know that. All you need to do is add the script to the document `
`, and drop in icons with an `` tag and the appropriate class:
@@ -23,26 +23,26 @@ Phosphor is available as a [one-liner](https://github.com/phosphor-icons/phospho
-
+
-
-
+
+
```
-Check out the full documentation on the [phosphor-icons](https://github.com/phosphor-icons/phosphor-icons) repo page.
+Check out the full documentation on the [@phosphor-icons/web](https://github.com/phosphor-icons/web) repo page.
### React
-- **Powerful** – Phosphor's intuitive but powerful API can style the `color`, `size`, and `weight` of an icon with a few keystrokes, provide default styles to all icons via the Context API, or directly manipulate the SVG at runtime through render props to do some amazing things! Check out the full documentation on the [phosphor-react](https://github.com/phosphor-icons/phosphor-react) repo page.
+- **Powerful** – Phosphor's intuitive but powerful API can style the `color`, `size`, and `weight` of an icon with a few keystrokes, provide default styles to all icons via the Context API, or directly manipulate the SVG at runtime through render props to do some amazing things! Check out the full documentation on the [@phosphor-icons/react](https://github.com/phosphor-icons/react) repo page.
```jsx
import React from "react";
import ReactDOM from "react-dom";
-import { Smiley, Heart, Horse } from "phosphor-react";
+import { Smiley, Heart, Horse } from "@phosphor-icons/react";
const App = () => {
return (
@@ -62,7 +62,7 @@ ReactDOM.render(, document.getElementById("root"));
### Vue
-- **Parity** – As with React, you can manipulate the `color`, `size`, and `weight` of an icon with a few keystrokes, or provide default styles to all icons via the `provide/inject` API. It is fully tree-shakable and ready to use right away. Check out the full documentation on the [phosphor-vue](https://github.com/phosphor-icons/phosphor-vue) repo page.
+- **Parity** – As with React, you can manipulate the `color`, `size`, and `weight` of an icon with a few keystrokes, or provide default styles to all icons via the `provide/inject` API. It is fully tree-shakable and ready to use right away. Check out the full documentation on the [@phosphor-icons/vue](https://github.com/phosphor-icons/vue) repo page.
```html
@@ -90,13 +90,15 @@ ReactDOM.render(, document.getElementById("root"));
## Our Related Projects
-- [phosphor-react](https://github.com/phosphor-icons/phosphor-react) ▲ Phosphor icon component library for React
-- [phosphor-vue](https://github.com/phosphor-icons/phosphor-vue) ▲ Phosphor icon component library for Vue
-- [phosphor-icons](https://github.com/phosphor-icons/phosphor-icons) ▲ Phosphor icons for Vanilla JS
-- [phosphor-flutter](https://github.com/phosphor-icons/phosphor-flutter) ▲ Phosphor IconData library for Flutter
-- [phosphor-webcomponents](https://github.com/phosphor-icons/phosphor-webcomponents) ▲ Phosphor icons as Web Components
-- [phosphor-figma](https://github.com/phosphor-icons/phosphor-figma) ▲ Phosphor icons Figma plugin
-- [phosphor-sketch](https://github.com/phosphor-icons/phosphor-sketch) ▲ Phosphor icons Sketch plugin
+- [@phosphor-icons/core](https://github.com/phosphor-icons/core) ▲ Phosphor icon assets and catalog
+- [@phosphor-icons/react](https://github.com/phosphor-icons/react) ▲ Phosphor icon component library for React
+- [@phosphor-icons/web](https://github.com/phosphor-icons/web) ▲ Phosphor icons for Vanilla JS
+- [@phosphor-icons/vue](https://github.com/phosphor-icons/vue) ▲ Phosphor icon component library for Vue
+- [@phosphor-icons/elm](https://github.com/phosphor-icons/phosphor-elm) ▲ Phosphor icons for Elm
+- [@phosphor-icons/flutter](https://github.com/phosphor-icons/flutter) ▲ Phosphor IconData library for Flutter
+- [@phosphor-icons/webcomponents](https://github.com/phosphor-icons/webcomponents) ▲ Phosphor icons as Web Components
+- [@phosphor-icons/figma](https://github.com/phosphor-icons/figma) ▲ Phosphor icons Figma plugin
+- [@phosphor-icons/sketch](https://github.com/phosphor-icons/sketch) ▲ Phosphor icons Sketch plugin
## Community Projects
diff --git a/package.json b/package.json
index b8600b3..f4e8a74 100644
--- a/package.json
+++ b/package.json
@@ -27,11 +27,11 @@
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,vue}\""
},
"dependencies": {
- "@phosphor-icons/core": "^1.4.7",
+ "@phosphor-icons/core": "^2.0.2",
+ "@phosphor-icons/react": "^2.0.4",
"file-saver": "^2.0.2",
"framer-motion": "^9.0.1",
"fuse.js": "^6.4.1",
- "phosphor-react": "^1.4.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/src/components/Banner/Banner.css b/src/components/Banner/Banner.css
index d3d3236..594b9da 100644
--- a/src/components/Banner/Banner.css
+++ b/src/components/Banner/Banner.css
@@ -4,14 +4,9 @@
left: 0;
right: 0;
border-radius: 0;
- /* top: 8px;
- left: 8px;
- right: 8px;
- max-width: 1120px; */
display: flex;
padding: 12px;
color: white;
- text-align: center;
margin: auto;
background-color: var(--eggplant);
z-index: 1;
@@ -31,10 +26,11 @@
display: flex;
align-items: center;
justify-content: space-between;
- gap: 8px;
+ gap: 20px;
flex: 1;
max-width: 1120px;
margin: auto;
+ font-family: "IBM Plex Mono";
}
.banner-button {
@@ -50,3 +46,10 @@
.banner-button:active {
opacity: 0.7;
}
+
+.message {
+ display: grid;
+ grid-template-columns: 32px 1fr;
+ align-items: center;
+ gap: 20px;
+}
diff --git a/src/components/Banner/Banner.tsx b/src/components/Banner/Banner.tsx
index d460b89..8fcc873 100644
--- a/src/components/Banner/Banner.tsx
+++ b/src/components/Banner/Banner.tsx
@@ -1,6 +1,6 @@
import { ReactNode, Dispatch, SetStateAction } from "react";
import { motion, AnimatePresence, Variants } from "framer-motion";
-import { XCircle } from "phosphor-react";
+import { XCircle } from "@phosphor-icons/react";
import ReactGA from "react-ga4";
import { useLocalStorage } from "@/hooks";
@@ -69,7 +69,7 @@ const Banner = ({ id, children, onClose }: BannerProps) => {
e.key === "Enter" && handleClose();
}}
>
-
+
diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx
index f43765c..58b1b0c 100644
--- a/src/components/Footer/Footer.tsx
+++ b/src/components/Footer/Footer.tsx
@@ -1,6 +1,6 @@
import { useRecoilValue } from "recoil";
import { motion, AnimatePresence, Variants } from "framer-motion";
-import { Coffee, Heart, ArrowULeftUp } from "phosphor-react";
+import { Coffee, Heart, ArrowULeftUp } from "@phosphor-icons/react";
import Links from "@/components/Links/Links";
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index 12f13f8..7bb4da9 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -1,4 +1,8 @@
-import { ArrowCircleUpRight, ArrowCircleDown, Megaphone } from "phosphor-react";
+import {
+ ArrowCircleUpRight,
+ ArrowCircleDown,
+ Broadcast,
+} from "@phosphor-icons/react";
import Banner from "@/components/Banner";
@@ -38,22 +42,19 @@ const handleScrollToIcons = () =>
const Header = (_: HeaderProps) => {
return (
-
-
-
- Phosphor has some big updates, and some APIs have changed for
- users of the Vanilla JS library. Please check our{" "}
-
- documentation
- {" "}
- to see what's new...
-
- >
- }
- />
+
+
+
+
+ Phosphor 2.0 is out, with some big updates and some small API
+ changes. Check our{" "}
+
+ documentation
+ {" "}
+ to see what's new!
+
+
+
diff --git a/src/components/IconGrid/DetailFooter.tsx b/src/components/IconGrid/DetailFooter.tsx
index b94cd4d..b21c321 100644
--- a/src/components/IconGrid/DetailFooter.tsx
+++ b/src/components/IconGrid/DetailFooter.tsx
@@ -4,7 +4,12 @@ import { useHotkeys } from "react-hotkeys-hook";
import { motion, AnimatePresence, Variants } from "framer-motion";
import { Svg2Png } from "svg2png-converter";
import { saveAs } from "file-saver";
-import { Copy, CheckCircle, DownloadSimple, XCircle } from "phosphor-react";
+import {
+ Copy,
+ CheckCircle,
+ DownloadSimple,
+ XCircle,
+} from "@phosphor-icons/react";
import ReactGA from "react-ga4";
import Tabs, { Tab } from "@/components/Tabs";
@@ -241,30 +246,33 @@ const DetailFooter = () => {