forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style: Added inline code styling (nodejs#5952)
* Style: Added inline code styling In this commit, I've implemented inline code block styling according to the Figma design. Changes Made: - Created `styles/new/base.css` and added styling for code blocks in light mode. - Created `styles/new/layout/dark-theme.css` and added styling for code blocks in dark mode. - Created `variables.css` to declare variables. For these changes, I followed the existing file structure in the `styles/old` folder. Signed-off-by: Akhilender <[email protected]> * Style: Altered the manual css to tailwind css - Added Tailwind css classes and removed the manual css for both light mode as well as dark mode - Added the font family into tailwind.config.js - Updated the storybook with the new font-family in constants.ts as well as preview.tsx - Deleted the variables.css as the variables are being imported directly from the tailwind config.js - Followed the collaborator guidelines Signed-off-by: Akhilender <[email protected]> * style: Implemented inline code block design - Added tailwind css for dark mode using correct syntax - Added background color as well as border radius property - Added the code block in the storybook in text.stories.tsx as mentioned in the issue description Signed-off-by: Akhilender <[email protected]> * style: Resolved Reviews Requested - Resolved all the changes requested - Changed name from Code to InlineCode - Corrected the indentation for the dark - Added the subsets: latin Signed-off-by: Akhilender <[email protected]> * fix: rebase fix --------- Signed-off-by: Akhilender <[email protected]> Co-authored-by: Claudio Wunder <[email protected]>
- Loading branch information
1 parent
2ab4d06
commit c921141
Showing
5 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters