Power CSS Pack

This extension added a lot of useful css utilities to further enrich your roam experience. It's easy to use, you just need to put the specific tag in your block, then the corresponding styles will be applied.

There are 16 colors(navy,blue,aqua,teal,olive,green,lime,yellow,orange,red,fuchsia,purple,maroon,silver,gray,black) predefined in the extension, which can be used in any css styles tag provided by this extension.

Below are some examples to demonstrate how to use this extension and how the block is rendered. Roam Notes Content is how you write notes your roam blocks with the specific css tags, Render Results is the final effect of applying the specific css tag from this extension.

Border Styles Examples

This extension provides 6 of different boarder styles for rendering, all 6 border styles are not regular, it's kinda have some art style, to make your roam more sophisticated

Roam Notes Content

  • Border Styles Examples #.css-level-bg
    • Border 1 #.css-border-1
    • Border 2 #.css-border-2
    • Border 3 #.css-border-3
    • Border 4 #.css-border-4
    • Border 5 #.css-border-5
    • Border 6 #.css-border-6

Render Results

Content Level Font Color Examples

If you want to have different colors for different roam block level, then below is how this extension helps you with that.

Note: the color is predefined, not support for configuration in roam plugin panel settings, but you can customize it in your [[roam/css]]

Roam Notes Content

  • Content Level Font Color Examples #.css-level-color
    • level1
      • level2
        • level3
          • level4
            • level5
              • level6

Render Result

Content Level Backgroun Color Examples

Similar to the above, if you want to have different backgroun colors for different roam block level, than below shows how to do it. You just need to put #.css-level-bg in the roam block,then this block and its children block will be rendered with different background colors in different levels.

Note: this background color for different level is predefined, not support for configuration in roam plugin panel settings, but you can customize it in your [[roam/css]]

Roam Notes Content

  • Content Level Background Examples
    • level1 background with color#.css-level-bg #.css-font-black
      • level2 background with color
        • level3 background with color
          • level4 background with color
            • level5 background with color
              • level6 background with color #.css-font-yellow
                • level7 background with color
                  • level8 background with color
                    • level9 background with color
                    • level10 background with color

Render Results

Block Background Color Examples

If you want to render a block with specific background color(only block itself, children block will not be affected), you can use #.css-bg-orange-100 tag

  • orange stands for the background color, you can use any other predefined colors(16 colors) to replace orange in the tag.
  • 100 stands for color opacity, you have 6 opacity(100, 200, 300, 400, 500, 600) to use

Roam Notes Content

  • level10 background with color
  • Block Background Examples #.css-font-white
    • Yellow Background 100 #.css-bg-orange-100
    • Yellow Background 200 #.css-bg-orange-200
    • Yellow Background 300 #.css-bg-orange-300
    • Yellow Background 400 #.css-bg-orange-400
    • Yellow Background 500 #.css-bg-orange-500
    • Teal Background 100 #.css-bg-teal-100
    • Teal Background 200 #.css-bg-teal-200
    • Teal Background 300 #.css-bg-teal-300
    • Teal Background 400 #.css-bg-teal-400
    • Teal Background 500 #.css-bg-teal-500
    • Teal Background 600 #.css-bg-teal-600
    • Olive Background 100 #.css-bg-olive-100
    • Olive Background 200 #.css-bg-olive-200
    • Olive Background 300 #.css-bg-olive-300
    • Olive Background 400 #.css-bg-olive-400
    • Olive Background 500 #.css-bg-olive-500
    • Olive Background 600 #.css-bg-olive-600

Render Results

Font Styles Examples

You have three kinds of tags to control the font.

  • #.css-font-orange: control the color of the font, you have 16 colors to choose from.
  • #.css-font-family-fantasy: control the font family of the font, there are 13 font families(serif, sans-serif, monospace, cursive, fantasy, system-ui, ui-serif, ui-sans-serif, ui-monospace, ui-rounded, emoji, math, fangsong) are available for you to use.
  • #.css-font-20px: control the font size, you can set the font size between 12 and 72

Roam Notes Content

  • Font Examples
    • font color is orange and font family is fantasy, font size is 32 #.css-font-orange #.css-font-family-fantasy #.css-font-32px
    • font color is maroon and font family is ui-serif #.css-font-maroon, font size is 28 #.css-font-family-ui-serif #.css-font-28px
    • font color is blue and font family is ui-monospace, font size is 20 #.css-font-blue #.css-font-family-ui-monospace #.css-font-20px
    • font color is orange and font family is fantasy, font size is 18 #.css-font-orange #.css-font-family-fantasy #.css-font-18px
    • font color is orange and font family is fantasy #.css-font-family-fantasy, font size is 14 #.css-font-teal #.css-font-14px

Render Results

Box Styles Examples

You can add a border to your roam block and specify the alignment fo the content by simply adding this tag #.css-box-orange-right.

  • orange stands for the box border color, you can set any of above predefined 16 colors.
  • right stands for the box border content alignment, you can set the alignment to one of these left, start, center, end, right

Roam Notes Content

  • Box Examples #.css-grid3
    • box orange right #.css-box-orange-right
      • box1
      • box2
    • box orange center #.css-box-orange-center
      • box1
      • box2
    • box orange left #.css-box-orange-start
      • box1
      • box2
    • box teal left #.css-box-teal-start
      • box1
      • box2
    • box teal center #.css-box-teal-center
      • box1
      • box2
    • box teal right #.css-box-teal-right
      • box1
      • box2
    • box yellow left #.css-box-yellow-start
      • box1
      • box2
    • boxyellowteal right #.css-box-purple-right
      • box1
      • box2
    • box yellow center #.css-box-navy-center
      • box1
      • box2

Render Results

Grid Layout Examples

This is what I like the most, layout style tags really give you the freedom to further customize you roam notes. You can have more layout options to rearrange your blocks to have a better visual effect.

#.css-grid2: 2 stands for how many blocks are there in one row, the option values are as follows: 2, 3, 4, 5, 6

Two Columns

Roam Notes Content

  • Tow Columns #.css-grid2 #.css-font-black#.css-level-bg
    • Column1 #.css-font-orange
    • Column2
    • Column3
    • Column4
    • Column5
    • Column6
    • Column7
    • Column8
    • Column9
    • Column10

Render Results

Three Columns

Roam Notes Content

  • Three Columns #.css-grid3 #.css-level-bg #.css-font-maroon
    • Column2
    • Column1 #.css-font-orange
    • Column4
    • Column3
    • Column5
    • Column6
    • Column8
    • Column7
    • Column10
    • Column9

Render Results

Four Columns

Roam Notes Content

  • 4 Columns #.css-grid4 #.css-level-bg #.css-font-navy
    • Column2
    • Column1
    • Column4
    • Column3
    • Column5
    • Column6
    • Column8
    • Column7
    • Column10
    • Column9

Render Results

Column with fixed Column width and auto layout

Sometimes you don't know how many columns should be set in one row, but you do know what is the mininum width of each column, then you can use this layout style tag .css-grid-auto-100px

  • 100px stands for the mininum width of the column
  • There are 15 predefined column widths(100px, 150px, 200px, 250px, 300px, 350px, 400px, 450pxl, 500px, 550px, 600px, 650px, 700px, 750px, 800px) for you to use.

Roam Notes Content

  • Column with fixed Column width and auto layout #.css-level-bg #.css-font-black
    • Fixed column width 100px #.css-grid-auto-100px
      • Column2
      • Column1 #.css-font-orange
      • Column4
      • Column3
      • Column5
      • Column6
      • Column8
      • Column7
      • Column10
      • Column9
    • Fixed column width 150px #.css-grid-auto-150px
      • Column2
      • Column1 #.css-font-orange
      • Column4
      • Column3
      • Column5
      • Column6
      • Column8
      • Column7
      • Column10
      • Column9
    • Fixed column width 200px #.css-grid-auto-200px
      • Column2
      • Column1 #.css-font-orange
      • Column4
      • Column3
      • Column5
      • Column6
      • Column8
      • Column7
      • Column10
      • Column9
    • Fixed column width 300px #.css-grid-auto-300px
      • Column2
      • Column1 #.css-font-orange
      • Column4
      • Column3
      • Column5
      • Column6
      • Column8
      • Column7
      • Column10
      • Column9

Render Results

Support This Project

If this extension has been helpful to you, please consider making a donation to support my work. Your contribution helps me continue to develop and maintain the extension for the community. PayPal donation link: https://www.paypal.com/paypalme/codingmonkey