cssmatic gradient css generator,CSSMatic - Automation Tool That Makes CSS Easy For Web Designers - H...

CSS is a very powerful stylesheet language that lets you take control of the look and feel of a site. It provides efficiency in design and updates. But coding from scratch is always tough. Thankfully, you can find many little helpers which usually cover a few features to make coding CSS easier.

Today, I want to introduce you to CSSMatic, a complete service which can automate the creation of some CSS3 features.

Developed by Alejandro Sánchez Blanes (founder of Freepik) and Joaquín Cuenca (Panoramio) CSSMatic allows you to generate complex and complicated code that are usually written manually. We will look at the four things CSSMatic can help automate for us: Gradients, Border Radius, Noise Texture and Box Shadow.

CSS Could Be The Hardest Language of All (5 Reasons Why)

CSS Could Be The Hardest Language of All (5 Reasons Why)

A website may be built upon several web languages such as HTML, CSS, JavaScript, and PHP. Among these...Read more

1. Gradient Generator

Gradient Generator is the most complex, most complete and probably the most used tool in CSSMatic. It is used to generate multiple color gradients, from several available presets or completely from scratch, speaking of which, you might be interested in the following tutorials on how to:

Customizing Your Gradient

For input option, there are 26 ready-to-use presets for you. When you click any of those presets, it will automatically load in the color slider and preview. Your custom gradient is stored as a new preset once you save.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

Underneath the presets you can find a color slider with several control stops. Click any of those points to activate a slider to change the opacity. Click on any free top border to create a new stop point. The black stop points, up top, manipulate opacityandgradient location. The bottom points are used to alter gradient colorandlocation.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

(Note that there are also static sliders for you to change opacity and location under the slider.)

Clicking at any of the stop points will show a dialog box. Here, you can change the first or secondary color using these points or even add another color or two. To add a color, click on the bottom border and a new stop point will emerge.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

On the color slider, you can see a reverse colors button, which can be used to exchange the first and secondary color of the gradient.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

Gradient direction comes in various preferences as well: left to right, top to bottom, diagonally upward, diagonally downward and circular direction.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

There are also settings to change hue, saturation or lightness via the slider or inputting the exact value. A reset button allows you to start from scratch. Once you are done customizing the gradient the way you want it, you can save it as a preset.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

Gradient Output

With CSSMatic, you can choose how the gradient will be generated in code: either in CSS or SASS. There are several color formats you can change for your generated code, such as: hex, hsl, hsla, rgb and rgba. hsla and rgba make use of the alpha channel.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

If you toggle the Comments option, it will add some comments to the code indicating which browser supports the gradient.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

To make the gradient work well in IE9, an instruction is available to toggle for IE9 Support option. The instruction will have you add the “gradient” class to all your relevant elements and the following will override your HTML rule.

2. Border Radius

The second features is the Border Radius which lets you manipulate the corners of a shape easily. You can use the slider or input a value. The value of 0px denotes a square. The higher the px the more circular your corners get. The corners can be altered all at once (All Corners) or one corner at a time.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

If you want to add border, simply define border width or drag the bar. The border comes in various styles including: Solid, Dotted, Dashed, Double, Groove, Ridge, Inset, Outset, Inherit, Hidden or None. Border and background color can also be changed with ease.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

3. Noise Texture

Noise Texture helps you create a noise pattern to your web layouts. You can control noise opacity, density as well as background and noise color. Toggling the "Export noise transparent" option will make the noise background transparent.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

If you want to download the noise as an image, hit the Download Noise Texture button. You can also specify the image size you desire before downloading it.

4. Box Shadow

The last tool is the Box Shadow. To change the direction of the blur to horizontal or vertical, you can use the sliders on the left sidebar. The density and size of the blur are controlled by Blur and Spread Radius tools. You can choose the color of the box and its shadow.

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

To change the transparency or alpha channel of the shadow easily, use Color slider. And if you want to make the shadow inset or outline, just toggle the lowermost tool.

10 Creative Techniques Using CSS3 Box Shadow

10 Creative Techniques Using CSS3 Box Shadow

We have seen a tremendous number of advancements in CSS3 web development over just the past few years....Read more

For Border Radius, Noise Texture and Box Shadow, once you have created the final result that you want, copy the code out for your use.

Final Thought

CSSMatic is a good time-saver app and it makes your work a bit easier when it comes to coding in CSS. It is also a tool that works well for you, whether you are new to CSS or familiar with it. Thus far, CSSMatic lacks of documentation and instructions, especially the Gradient Generator. The first time you stumble upon it, you may need to play with the tools to figure them out. Let us know if you like it.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值