style

Learn how to use the style function in Notion formulas.

New in Formulas 2.0

The style() function will add formatting to a string. Accepted styles include bold, underline, italics, code, and strikethrough for formatting, and both text and background colors.

style(string, formatting, textColor, backgroundColor)

string.style(formatting, textColor, backgroundColor)
Code language: JavaScript (javascript)

Each formatting or color option must have its own argument ("b", "u", "blue", "red_background"), and the order of the arguments does not matter.

style("Thomas Frank", "b", "i", "blue")

"College Info Geek".style("s", "yellow_background")
Code language: JavaScript (javascript)
  • "b"Bold
  • "u"Underline
  • "i"Italics
  • "c"Code
  • "s"Strikethrough

Only one text color and one background color can be set per string using the following arguments. If multiple text or background color arguments are added the last argument will be used.

ColorTextBackground
Default"default"n/a
Gray"gray""gray_background"
Brown"brown""brown_background"
Orange"orange""orange_background"
Yellow"yellow""yellow_background"
Green"green""green_background"
Blue"blue""blue_background"
Purple"purple""purple_background"
Pink"pink""pink_background"
Red"red""red_background"
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas