Skip to content

Commit da67bac

Browse files
feat(material): create arc material theme package (#340)
1 parent edfef05 commit da67bac

File tree

11 files changed

+862
-89
lines changed

11 files changed

+862
-89
lines changed

GETTING_STARTED.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,28 @@ export const App = () => {
136136
};
137137
```
138138

139+
#### React with (ARC & Material UI Components)
140+
141+
```
142+
npm install @arc-web/components@latest @arc-web/react@latest @arc-wb/material@latest
143+
```
144+
145+
```tsx
146+
import { ThemeProvier } from '@arc-web/material';
147+
import { ArcContainer } from '@arc-web/react';
148+
import { Button } from '@arc-web/material';
149+
150+
export const App = () => {
151+
return (
152+
<ThemeProvier>
153+
<ArcContainer>
154+
<Button>Click Me</Button>
155+
</ArcContainer>
156+
</ThemeProvier>
157+
);
158+
};
159+
```
160+
139161
### Customization
140162

141163
**ARC** components can be customized at a high level through design tokens. This gives you control over theme colours and general styling. For more advanced customizations, web-components can expose something called CSS `parts`. To ensure that each application looks and feels the same, these `parts` are not being exposed from the **ARC** components.

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
overlays = [
2020
(final: prev: {
2121
lib = prev.lib // import ./lib.nix { pkgs = final; writers = final.writers; };
22-
react = final.callPackage ./packages/react { };
2322
components = final.callPackage ./packages/components { };
23+
react = final.callPackage ./packages/react { };
24+
material = final.callPackage ./packages/material { };
2425
documentation = final.callPackage ./documentation { };
2526
storybook = final.callPackage ./packages/components/.storybook { };
2627
})
@@ -31,7 +32,7 @@
3132
rec {
3233
checks = packages;
3334
formatter = pkgs.nixpkgs-fmt;
34-
packages = { inherit (pkgs) components documentation react storybook; };
35+
packages = { inherit (pkgs) components react material documentation storybook; };
3536
devShells.default = pkgs.callPackage ./shell.nix { };
3637
}
3738
)

lib.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ in
3333
# this workspace is a monorepo and all dependencies
3434
# are resolved via the workspace root package.json
3535
src = cleanSource ./.;
36-
npmDepsHash = "sha256-F1yz18glDERcufe6VqgYYdM43GAf5A8QHX/Hg1NeIm8=";
36+
npmDepsHash = "sha256-S7IetVc9X1enM5SclL7USMsgGJ+LQ9CXQNb5h8DmSbM=";
3737

3838
# dont run the build scripts when rebuilding
3939
# npm dependencies as node-keytar will fail
@@ -90,9 +90,6 @@ in
9090
mv nix_outdated.csv ./reports/react-nix_outdated.csv
9191
9292
zip -r reports.zip ./reports
93-
94-
95-
9693
'';
9794
};
9895
}

0 commit comments

Comments
 (0)