
Extreme dashboard styling (with CSS!)
Complete embedded dashboard styling. Complete CSS control for the full dashboard experience. The visual controls are nearly limitless (see thumbnail below).
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Next, we talked a lot about themes, so this will be a bit more of a demonstration. We created several mockups in Figma about how themes can be built using our existing tools. One idea was to use our current CSS variables; can we just give people a free way to input parameters? You know, we make mockups in Figma , but a real prototype is worth a thousand mockups in Figma.
So I started working a little on isolating some of our existing elements. And thanks to Sarah for creating this dashboard that I was able to reuse . Again, this is just a prototype. It's not in the product yet, but it's pretty close to our actual CSS structure and how we apply variables. But you can just go in here, start entering values, and see what happens as you make changes.
This is regular CSS, so you can do interesting things like grab an image here. You can do centering. Open URL. You can add a background image. This is a very beautiful sunset on the beach that can be set. Looks great. You can also make gradients. We don't have them, so... here's a nice gradient. It's all linked, so you can quickly change page indentations or perhaps reduce the gaps between tiles.
I will not change the elevation. We could change the color of all the tiles. I will make it black. You can. This is simply incredible. This is so cool. Uh -huh. You make us look worse, the rest of us. Sorry. Sorry. It. No, but how realistic is that? I mean, this is very close to how we implement themes, which is why I wanted to create this prototype to see what we can achieve with what we have today.
So, like I said, it's just a CSS value. So if you put in, for example, an HSL value that allows you to control transparency, you can make elements semi-transparent on the background, turn off the borders, make them very rounded, and then I'll just go through and change the font size. You can use a serif font or "fantasy", which is best because everyone loves a bit of papyrus.
We can center align it, and it's just like a revision of what I started working with. It's one of those things that you want to see right away—it's like you want to control some of this process as you work. But the interesting thing is that you've already affected all the tiles, so I've created this so that you can select a tile, iterate over all these properties, and start applying some changes to them if you want to start inheriting settings; You can quickly try different options, such as removing the background to make it look like the tile is floating, and want to be able to quickly select multiple tiles to perform actions.
You can quickly create really cool prototypes to see what it would look like in action. Ariel, Sarah, and I spent a lot of time creating a whole series of themes based on this. Ariel says she's not a designer, but she made this theme really quickly using different elements, and it has this cool purple gradient background. Here's another variation, with another nice gradient, some transparency, and a slightly different font.
And here is a very bright gradient. This is where you see where our prototype fails. You want to be able to change the text and colors of visualizations very quickly. Here is a variation that I called "Neon Storm Salmon." It's kind of a glow, just for fun. And this one has But Jared, Jared, for clarity, you could go to the visualization and change the colors there as well.
I could . Yes, eventually, you'll want to do it . You will want to change the visualization. It's like the elegance of the editing process. Yes, for me now it's like you have almost complete control here over the visualization, as well as over the containers for it. Yes. We...I could go in and add all the controls, like changing SVG values , but right now I'm focused on creating the control panel itself.
But yes, you could go in, change the visualization and make it work, but... That would be something incredible. Okay, Jamie, yes. No, no, don't worry. I'm just...I'm thrilled, I have no words. I am so excited. Sorry. Yes, Sarah created such a cool thing for Valentine's Day , you might never do something like that, but technically it's possible.
She made one version with a gorgeous gradient that looks like a wave. Here's another one she created, with really cool background patterns and interesting tiles. Here's an option that I think looks more realistic, perhaps in the style of aircraft design. So I added tonal colors, highlights, and shadows here. Here is another dark theme option we have. And here there are nice gradients and directional shadows, as if depending on the lighting.
So, you can do everything very elegantly. Here's another complex gradient I created on a white background with a neutral top, and here's another modern style I designed. As you can see, with this small set of controls and settings, using our ready-made solutions and themes, this prototype proves that we can create cool things when we implement it into a product.
So that's pretty cool. Jared, I know you have a surprise topic . Yes, I have a surprise theme that I can download. This is a prototype that anyone can play with and create their own themes. They are not saved, so if you refresh the page, they will disappear. But I added a theme copy function: you click " copy", get a line that you can then paste and download the theme back.
Let's see if this works in a demo. This is my “graphic design is my calling” style control panel. I think it could become a standard because you can do crazy things because it's open CSS. I had a lot of fun creating this. This is incredible. This is something I worked on a little bit this week. My God .
Yes, it's just wild. This really changes embedding completely. So that's fun. Sorry for the long demo, but it was cool to see all the experiments everyone created. Do we have any ideas on how we will apply themes to visualizations? Will it be something like CSS variables? Or maybe there is a main theme that applies to the instance that can be toggled?
Or I think that's something we need to figure out because we're using Vega, and I don't know how Vega wraps or inherits all of these things. So this is where you'll need someone who knows a little more about Vega to structure this. But you definitely want to be able to customize both at the same time when you're creating themes, and you need ways to share these things, reuse them, have little elements so you can, you know, click on a few tiles and apply themes that you've created, or create libraries of themes, templates, etc.
So I think we'll want to be able to bring the palette into the editor interface. Yes. Custom palettes and, I guess, some improvements here and there —we'll probably just want to be able to set default palettes, but then it's pretty easy to replace them for individual tiles. We will probably start porting some of the visualization editor features to the theme builder, which will make things much easier for users.
This makes perfect sense. This is great. I'll post that little prototype for anyone who wants to try creating their own themes.